forked from forbole/callisto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.01 KB
/
docker-compose.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
version: '3.8'
services:
postgres:
image: postgres:latest
platform: linux/amd64
ports:
- "5432:5432"
env_file:
- .env
volumes:
- ${DATA_PATH}/postgredb:/var/lib/postgresql/data
hasura:
image: hasura/graphql-engine:v2.40.0
depends_on:
- postgres
ports:
- "8080:8080"
env_file:
- .env
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
ACTION_BASE_URL: http://callisto:3030
callisto:
build:
context: .
dockerfile: Dockerfile
depends_on:
- hasura
- postgres
ports:
- "3030:3030"
env_file:
- .env
restart: always
volumes:
- ${DATA_PATH}/callisto:/root/.callisto
deploy:
replicas: 0 # Set replicas to 0 to prevent automatic startup