-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
65 lines (60 loc) · 1.53 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
60
61
62
63
64
65
version: "3.7"
services:
timescale:
image: timescale/timescaledb:latest-pg11
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: postgrespassword
volumes:
- db-data:/var/lib/postgresql/data
graphql-engine:
image: hasura/graphql-engine:latest.cli-migrations
ports:
- "8080:8080"
depends_on:
- "timescale"
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@timescale:5432/postgres
HASURA_GRAPHQL_ACCESS_KEY: mylongsecretkey
HASURA_GRAPHQL_ENABLE_TELEMETRY: "false"
volumes:
- ./docker-data/migrations:/hasura-migrations:ro
command:
- graphql-engine
- serve
- --enable-console
back-end:
image: node:10
depends_on:
- "graphql-engine"
working_dir: /home/node/app
environment:
HASURA_HOST: graphql-engine
HASURA_PORT: 8080
HASURA_ACCESS_KEY: mylongsecretkey
MOCK_MODE: ""
volumes:
- ./back-end:/home/node/app
ports:
- "50051:50051"
command: bash -c "echo Starting... && npm install --silent && node index.js"
front-end:
image: node:10
depends_on:
- "graphql-engine"
working_dir: /home/node/app
environment:
HASURA_HOST: graphql-engine
HASURA_PORT: 8080
HASURA_ACCESS_KEY: mylongsecretkey
volumes:
- ./front-end:/home/node/app
command: bash -c "chmod +x entrypoint.sh && ./entrypoint.sh"
ports:
- "3030:3000"
stdin_open: true
volumes:
db-data: