generated from cleancoindev/DevGame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (54 loc) · 1.66 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
version: '3.6'
services:
hasura:
build:
context: ./hasura
args:
BACKEND_HOST: ${BACKEND_HOST:-backend:4000}
AUTH_HOOK_PATH: auth-webhook
ACTION_BASE_PATH: actions
REMOTE_SCHEMA_PATH: remote-schemas/graphql
TRIGGERS_PATH: triggers
depends_on:
- database
ports:
- ${HASURA_PORT}:8080
environment:
WAIT_HOSTS: database:5432, ${BACKEND_HOST:-backend:4000}
HASURA_GRAPHQL_SERVER_PORT: ${HASURA_PORT:-8080}
HASURA_GRAPHQL_DATABASE_URL: postgres://${DATABASE_USER}:${DATABASE_PASSWORD}@database:5432/${DATABASE_NAME}
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_DEV_MODE: ${HASURA_GRAPHQL_DEV_MODE:-false}
database:
image: postgres:12
volumes:
- database:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
backend:
build:
context: .
dockerfile: ./docker/backend/Dockerfile
target: base
command: yarn backend:dev
ports:
- 4000:4000
volumes:
- ./packages/@types:/usr/src/app/packages/@types
- ./packages/backend:/usr/src/app/packages/backend
- ./packages/utils:/usr/src/app/packages/utils
- ./package.json:/usr/src/app/package.json
- ./tsconfig.base.json:/usr/src/app/tsconfig.base.json
- ./yarn.lock:/usr/src/app/yarn.lock
environment:
PORT: 4000
GRAPHQL_URL: http://hasura:8080/v1/graphql
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
IMGIX_TOKEN: ${IMGIX_TOKEN}
volumes:
database: