-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (69 loc) · 1.89 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
version: "3"
networks:
web:
name: web
driver: bridge
ipam:
config:
- subnet: 172.30.0.0/16
services:
traefik:
container_name: traefik
image: traefik:latest
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
web:
ipv4_address: 172.30.0.2
ports:
- 80:80
- 443:443
volumes:
- ./config/traefik/static.yml:/etc/traefik/traefik.yml:ro
- ./config/traefik/dynamic.yml:/etc/traefik/dynamic.yml:ro
- ./certs:/etc/certs:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
portainer:
container_name: portainer
image: portainer/portainer-ce:latest
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
web:
ipv4_address: 172.30.0.3
labels:
traefik.enable: true
traefik.http.routers.portainer.rule: Host(`portainer.at.home`)
traefik.http.routers.portainer.tls: true
traefik.http.routers.portainer.entrypoints: websecure
traefik.http.services.portainer.loadbalancer.server.port: 9000
volumes:
- ./data/portainer:/data
- /var/run/docker.sock:/var/run/docker.sock:ro
pihole:
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
hostname: pihole
environment:
TZ: America/New_York
WEBPASSWORD: admin
PIHOLE_DNS_: 1.1.1.1;1.0.0.1
DNSMASQ_LISTENING: all
networks:
web:
ipv4_address: 172.30.0.4
ports:
- 53:53/tcp
- 53:53/udp
labels:
traefik.enable: true
traefik.http.routers.pihole.rule: Host(`pihole.at.home`)
traefik.http.routers.pihole.tls: true
traefik.http.routers.pihole.entrypoints: websecure
traefik.http.services.pihole.loadbalancer.server.port: 80
volumes:
- ./data/pihole/etc-pihole:/etc/pihole
- ./data/pihole/etc-dnsmasq.d:/etc/dnsmasq.d