-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
40 lines (37 loc) · 894 Bytes
/
docker-compose.prod.yml
File metadata and controls
40 lines (37 loc) · 894 Bytes
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
services:
postgres:
# Close port 5432 from the outside world.
# Access is restricted to containers within the internal Docker network.
ports: []
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
redis:
# Close port 6379 from the outside world.
ports: []
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
bot:
# Override volumes for production.
# Remove `.:/app` bind mount so the code is executed strictly from the built image.
# Keep only the logs directory mounted.
volumes:
- ./logs:/app/logs
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
worker:
volumes:
- ./logs:/app/logs
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"