-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (57 loc) · 1.56 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
59
version: '3.3'
volumes:
db_data:
redis_data:
services:
redis:
restart: always
image: bitnami/redis:6.0-debian-10
volumes:
- redis_data:/bitnami/redis/data
ports:
- 44002:6379
logging:
driver: 'json-file'
options:
max-size: '1m'
environment:
ALLOW_EMPTY_PASSWORD: 'yes'
server:
build:
dockerfile: ./server/Dockerfile.dev
context: ./
volumes:
- ./tsconfig.json:/app/tsconfig.json
- ./node_modules:/app/node_modules
- ./server:/app/server
ports:
- 44001:80
restart: always
command: /app/node_modules/.bin/ts-node-dev --poll --transpile-only /app/server/index.ts
# command: tail -f /dev/null
env_file:
- ./.env.dev
postgres:
image: postgres:12
ports:
- "5432:5432"
restart: always
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgrespassword
graphql-engine:
image: hasura/graphql-engine:v1.2.2
ports:
- "8080:8080"
depends_on:
- "postgres"
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_AUTH_HOOK: 'http://server/api/auth/hasura-webhook'
HASURA_GRAPHQL_AUTH_HOOK_MODE: 'GET'
## uncomment next line to set an admin secret
HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey