-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-with-postgres.yml
50 lines (49 loc) · 1.17 KB
/
docker-compose-with-postgres.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
version: "3.7"
services:
db:
container_name: covid-19-jh-db
restart: always
image: covid-19-jh-db
build:
context: ./db
volumes:
- ./db/data/:/var/lib/data
env_file:
- ./.env
networks:
- network
ports:
- 5432:5432
graphql:
container_name: covid-19-graphql-service
restart: always
image: covid-19-graphql-service
build:
context: ./graphql
env_file:
- ./.env
depends_on:
- db
networks:
- network
ports:
- 5000:5000
env_file:
- ./.env
command:
[
"--connection",
"${DATABASE_URL}",
"--port",
"5000",
"--schema",
"johns_hopkins",
"--enhance-graphiql",
"--allow-explain",
"--append-plugins",
"postgraphile-plugin-connection-filter,@graphile/postgis,postgraphile-plugin-connection-filter-postgis",
]
networks:
network:
volumes:
db: