-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (87 loc) · 1.69 KB
/
Copy pathdocker-compose.yml
File metadata and controls
92 lines (87 loc) · 1.69 KB
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
89
90
91
92
services:
bot:
build:
context: .
dockerfile: Dockerfile.bot
env_file: .env
depends_on:
- mongo
networks:
- internal
restart: unless-stopped
read_only: true
tmpfs:
- /tmp
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 256M
cpus: "0.50"
web:
build:
context: .
dockerfile: Dockerfile.web
env_file: .env
depends_on:
- mongo
networks:
- internal
restart: unless-stopped
read_only: true
tmpfs:
- /tmp
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 128M
cpus: "0.25"
nginx:
image: nginx:alpine
depends_on:
- web
networks:
- internal
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/ssl_params.conf:/etc/nginx/ssl_params.conf:ro
- ./nginx/certs:/etc/nginx/certs:ro
restart: unless-stopped
read_only: true
tmpfs:
- /var/cache/nginx:uid=101,gid=101,mode=0755
- /var/run:uid=101,gid=101,mode=0755
- /var/log/nginx:uid=101,gid=101,mode=0755
cap_add:
- NET_BIND_SERVICE
security_opt:
- no-new-privileges:true
mongo:
image: mongo:7
restart: unless-stopped
volumes:
- db:/data/db
environment:
MONGO_INITDB_DATABASE: botdb
networks:
- internal
volumes:
db:
networks:
internal:
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16
driver_opts:
com.docker.network.bridge.name: br-dnsfix