2022-11-30 23:49:07 +01:00
|
|
|
version: '3'
|
|
|
|
services:
|
2023-08-15 04:16:51 +02:00
|
|
|
nginx:
|
|
|
|
container_name: "{{nginx.host}}"
|
|
|
|
image: 'jc21/nginx-proxy-manager:latest'
|
2023-04-27 10:52:49 +02:00
|
|
|
restart: unless-stopped
|
2022-11-30 23:49:07 +01:00
|
|
|
networks:
|
2022-12-05 18:25:36 +01:00
|
|
|
net: {}
|
2022-11-30 23:49:07 +01:00
|
|
|
ports:
|
2023-08-15 04:16:51 +02:00
|
|
|
- '{{nginx.endpoints.http}}:80'
|
|
|
|
- '{{nginx.endpoints.https}}:443'
|
|
|
|
- '{{nginx.endpoints.admin}}:81'
|
|
|
|
volumes:
|
|
|
|
- "{{nginx.paths.data}}:/data"
|
|
|
|
- "{{nginx.paths.letsencrypt}}:/etc/letsencrypt"
|
|
|
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
|
|
|
|
|
|
|
|
2023-04-27 10:52:49 +02:00
|
|
|
pihole:
|
|
|
|
container_name: pihole
|
|
|
|
image: pihole/pihole:latest
|
|
|
|
restart: unless-stopped
|
2023-08-15 04:16:51 +02:00
|
|
|
depends_on:
|
|
|
|
- nginx
|
2023-04-27 10:52:49 +02:00
|
|
|
networks:
|
|
|
|
net: {}
|
|
|
|
ports:
|
|
|
|
- "53:53/tcp"
|
|
|
|
- "53:53/udp"
|
|
|
|
environment:
|
2023-08-15 04:16:51 +02:00
|
|
|
- "WEBPASSWORD={{ vault.pi.pihole.password }}"
|
2023-04-27 10:52:49 +02:00
|
|
|
- "ServerIP=192.168.20.11"
|
|
|
|
- "INTERFACE=eth0"
|
|
|
|
- "DNS1=1.1.1.1"
|
|
|
|
- "DNS1=1.0.0.1"
|
|
|
|
volumes:
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
|
|
- "{{ pihole_config }}:/etc/pihole/"
|
|
|
|
- "{{ pihole_dnsmasq }}:/etc/dnsmasq.d/"
|
|
|
|
dns:
|
|
|
|
- 127.0.0.1
|
|
|
|
- 1.1.1.1
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
2022-12-29 22:45:17 +01:00
|
|
|
|
2022-11-30 23:49:07 +01:00
|
|
|
networks:
|
2022-12-05 18:25:36 +01:00
|
|
|
net:
|
2022-11-30 23:49:07 +01:00
|
|
|
driver: bridge
|
|
|
|
ipam:
|
2022-12-06 16:36:21 +01:00
|
|
|
# driver: default
|
2022-11-30 23:49:07 +01:00
|
|
|
config:
|
|
|
|
- subnet: 172.16.69.0/24
|
|
|
|
gateway: 172.16.69.1
|