forked from forbole/callisto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
78 lines (76 loc) · 2 KB
/
docker-compose.local.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.6'
services:
hasura:
container_name: callisto_hasura
image: hasura/graphql-engine:v2.8.1
ports:
- "8080:8080"
restart: unless-stopped
environment:
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://stratos:stratos@postgres:5432/stratos_db
HASURA_GRAPHQL_DATABASE_URL: postgres://stratos:stratos@postgres:5432/stratos_db
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
ACTION_BASE_URL: "http://callisto:5005"
extra_hosts:
- host.docker.internal:host-gateway
networks:
- pg_network
volumes:
- ./hasura:/hasura
- ./local/hasura/config.yaml:/hasura/config.yaml
logging:
driver: "json-file"
options:
max-size: "128m"
callisto:
container_name: callisto_callisto
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "5005:5005"
expose:
- "5005"
extra_hosts:
- host.docker.internal:host-gateway
# command: tail -f /dev/null
command: callisto start --home /callisto/.callisto
networks:
- pg_network
volumes:
- ./local/callisto/config.yaml:/callisto/.callisto/config.yaml
- ./local/genesis.json:/callisto/.callisto/genesis.json
logging:
driver: "json-file"
options:
max-size: "128m"
postgres:
container_name: callisto_postgres
restart: unless-stopped
image: postgres:16.3
environment:
POSTGRES_DB: stratos_db
POSTGRES_USER: stratos
POSTGRES_PASSWORD: stratos
ports:
- "5432:5432"
expose:
- "5432"
networks:
- pg_network
volumes:
- pg_volume:/var/lib/postgresql/data
- ./database/schema:/tmp/migrations
- ./local/migrate_local.sh:/tmp/migrate.sh
logging:
driver: "json-file"
options:
max-size: "128m"
networks:
pg_network:
driver: bridge
volumes:
pg_volume: