-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
81 lines (81 loc) · 2.63 KB
/
docker-compose.yaml
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
79
80
81
---
version: '3.6'
services:
autoheal:
restart: always
image: willfarrell/autoheal
environment:
- AUTOHEAL_CONTAINER_LABEL=all
volumes:
- /var/run/docker.sock:/var/run/docker.sock
postgres:
image: postgres:12
restart: always
volumes:
- ./backend/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
frontend:
build:
context: ./frontend
ports:
- 8100:8100
- 24678:24678
environment:
HASURA_GRAPHQL_ADMIN_SECRET: $HASURA_GRAPHQL_ADMIN_SECRET
AUTH0_CLIENT_ID: $AUTH0_CLIENT_ID
VAPID_PUBLIC_KEY: $VAPID_PUBLIC_KEY
VAPID_PRIVATE_KEY: $VAPID_PRIVATE_KEY
#user: 1000:1000
restart: on-failure
volumes:
- ./frontend:/src
#command: /bin/sh -c 'tail -f /dev/null'
hasura-migrations:
image: hasura/graphql-engine:v2.15.2.cli-migrations-v3
depends_on:
- postgres
volumes:
- ./backend/hasura/migrations:/hasura-migrations
- ./backend/hasura/metadata:/hasura-metadata
restart: on-failure
environment:
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:$POSTGRES_PASSWORD@postgres:5432/postgres
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:$POSTGRES_PASSWORD@postgres:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: 'false' # set to "false" to disable console
HASURA_GRAPHQL_DEV_MODE: 'true'
HASURA_GRAPHQL_ENABLE_TELEMETRY: 'false'
hasura-cli:
build:
context: ./backend
restart: on-failure
depends_on:
- graphql-engine
#entrypoint: /bin/sh -c 'tail -f /dev/null'
entrypoint: hasura console --admin-secret $HASURA_GRAPHQL_ADMIN_SECRET --address 0.0.0.0 --no-browser
network_mode: host
volumes:
- ./backend/hasura:/src/hasura
working_dir: /src/hasura
environment:
HASURA_GRAPHQL_ADMIN_SECRET: $HASURA_GRAPHQL_ADMIN_SECRET
HASURA_GRAPHQL_JWT_SECRET: $HASURA_GRAPHQL_JWT_SECRET
HASURA_GRAPHQL_ENABLE_TELEMETRY: 'false'
graphql-engine:
image: hasura/graphql-engine:v2.15.2
ports:
- 8080:8080
depends_on:
- postgres
restart: always
environment:
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:$POSTGRES_PASSWORD@postgres:5432/postgres
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:$POSTGRES_PASSWORD@postgres:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: 'false'
HASURA_GRAPHQL_ENABLE_TELEMETRY: 'false'
HASURA_GRAPHQL_DEV_MODE: 'true'
HASURA_GRAPHQL_ADMIN_SECRET: $HASURA_GRAPHQL_ADMIN_SECRET
HASURA_GRAPHQL_JWT_SECRET: $HASURA_GRAPHQL_JWT_SECRET
volumes:
db_data: