-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (70 loc) · 1.42 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
services:
nginx:
image: nginx:alpine
container_name: nginx
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/templates:/etc/nginx/templates:ro
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/ssl:ro
environment:
- TZ=${TimeZone}
env_file:
- .env.nginx
deploy:
resources:
limits:
memory: 128M
reservations:
memory: 64M
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
dnsmasq:
build: ./dnsmasq
container_name: dnsmasq
restart: always
ports:
- "53:53/udp"
volumes:
- ./dnsmasq/dnsmasq.d:/etc/dnsmasq.d:ro
environment:
- TZ=${TimeZone}
deploy:
resources:
limits:
memory: 128M
reservations:
memory: 64M
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "4"
web:
build: ./web
container_name: web
restart: always
volumes:
- ./dnsmasq/dnsmasq.d:/app/dnsmasq/dnsmasq.d
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- TZ=${TimeZone}
env_file:
- .env.web
deploy:
resources:
limits:
memory: 128M
reservations:
memory: 64M
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "4"