-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
77 lines (75 loc) · 2.14 KB
/
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
version: "3.9"
services:
db:
container_name: kanban-board-db
image: postgres:15-alpine
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
ports:
- ${DB_PORT}:5432
volumes:
- ./postgres:/var/lib/postgresql/data
- ./db:/home/cmd
networks:
- db
api:
container_name: kanban-board-api
build:
context: ${API_PATH}
dockerfile: Dockerfile.dev
environment:
- PORT=${API_INTERNAL_PORT}
- HASURA_PORT=${HASURA_PORT}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
ports:
- ${API_PORT}:${API_INTERNAL_PORT}
volumes:
- ${API_PATH}:/app
networks:
- db
- hasura
depends_on:
- db
- graphql-engine
graphql-engine:
container_name: kanban-board-graphql-engine
image: hasura/graphql-engine:latest
ports:
- ${HASURA_PORT}:8080
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
## uncomment next line to set an admin secret
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
networks:
- db
- hasura
depends_on:
- db
hasura-cli:
container_name: kanban-board-hasura-cli
restart: unless-stopped
build:
context: ./cli
environment:
HASURA_GRAPHQL_ENDPOINT: http://graphql-engine:8080
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
volumes:
- ./hasura:/app
networks:
- db
- hasura
depends_on:
- db
- graphql-engine
command: tail -F anything
networks:
db:
hasura: