-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
44 lines (41 loc) · 1.05 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
version: '3.6'
services:
postgres:
image: postgres:10
ports:
- '5432:5432'
volumes:
- "/etc/passwd:/etc/passwd:ro"
- "postgres_data:/var/lib/postgresql/data/"
- ".:/app"
environment:
- POSTGRES_HOST=postgres
- POSTGRES_PASSWORD=heroes
- POSTGRES_USER=heroes
graphql-engine:
image: hasura/graphql-engine:v1.0.0-alpha35.cli-migrations
ports:
- '8080:8080'
depends_on:
- 'postgres'
volumes:
- .:/heroes-migrations
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://heroes:heroes@postgres:5432/postgres
HASURA_GRAPHQL_MIGRATIONS_DIR: /heroes-migrations
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
## uncomment next line to set an access key
# HASURA_GRAPHQL_ACCESS_KEY: mysecretaccesskey
heroes-react:
image: node:10
ports:
- '3000:3000'
depends_on:
- 'graphql-engine'
volumes:
- .:/app
working_dir: /app
user: "${UID}:${GID}"
command: "yarn start"
volumes:
postgres_data: