-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdocker-compose.api.yml
43 lines (40 loc) · 946 Bytes
/
docker-compose.api.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
version: "3"
services:
postgres:
build:
context: .
dockerfile: ./docker/postgres/Dockerfile
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=1234
- POSTGRES_DB=dfp
ports:
- "5432:5432"
api:
build:
context: .
dockerfile: ./docker/api/Dockerfile
environment:
- DB_USERNAME=postgres
- DB_PASSWORD=1234
- DB_HOST=postgres
- DB_PORT=5432
- DB_DATABASE=dfp
ports:
- "9000:9000"
volumes:
- ".:/app"
command: "gunicorn --bind 0.0.0.0:9000 api.budgetsdata:application"
links:
- postgres
graphql-engine:
image: hasura/graphql-engine:latest
restart: always
ports:
- "8080:8080"
depends_on:
- "postgres"
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:1234@postgres:5432/dfp
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_DEV_MODE: "true"