-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
88 lines (83 loc) · 2.07 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3.1"
services:
db:
container_name: listof-db
restart: always
image: listof-db
build:
context: ./db
volumes:
- db:/var/lib/postgresql/data
env_file:
- ./.env
networks:
- network
expose:
- 5432
ports:
- 5432:5432
graphql:
container_name: listof-graphql
restart: always
image: listof-graphql
build:
context: ./graphql
env_file:
- ./.env
depends_on:
- db
networks:
- network
command: [
"--connection",
"${DATABASE_URL}",
"--port",
"5433",
"--schema",
"base,public",
"--default-role",
"anonymous",
"--jwt-secret",
"${SECRET_KEY}",
"--jwt-token-identifier",
"base.sys_token",
"--body-size-limit",
"6MB", # Needed to allow batch request for files up to 3Mb (2*3MB=6MB)
"--append-plugins",
"postgraphile-plugin-connection-filter",
"--cors",
"--enable-query-batching",
"--watch",
]
app:
container_name: listof-app
restart: always
image: listof-app
build:
context: ./app
env_file:
- ./.env
depends_on:
- graphql
networks:
- network
command: ["prod"]
nginx:
container_name: listof-nginx
restart: always
image: nginx:alpine
volumes:
- ./nginx/config/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/config/cert.pem:/etc/nginx/cert.pem
- ./nginx/config/key.pem:/etc/nginx/key.pem
ports:
- 80:80
- 443:443
depends_on:
- app
networks:
- network
networks:
network:
volumes:
db: