-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (51 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
53 lines (51 loc) · 1.16 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
networks:
abri-proxy:
name: abri-proxy
driver: bridge
ipam:
config:
- subnet: 192.168.12.0/24
gateway: 192.168.12.1
services:
dnsmasq:
container_name: abri-dns
restart: always
image: jpillora/dnsmasq:1.1
logging:
# limit logs retained on host to 25MB
driver: "json-file"
options:
max-size: "100m"
max-file: "50"
environment:
- "HTTP_USER=masoud"
- "HTTP_PASS=masoud"
volumes:
- ./dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf
- ./dnsmasq/domains.conf:/etc/dnsmasq.d/domains.conf
ports:
- "53:53/udp"
- "5380:8080"
cap_add:
- NET_ADMIN
networks:
- abri-proxy
nginx-proxy:
image: nginx:latest
container_name: abri-nginx
logging:
# limit logs retained on host to 25MB
driver: "json-file"
options:
max-size: "100m"
max-file: "50"
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/allowed_ips.conf:/etc/nginx/allowed_ips.conf:rw
- ./nginx/logs:/var/log/nginx/
networks:
- abri-proxy