Adding docker-compose.yaml
This commit is contained in:
parent
8bf5e457f5
commit
2a83db42d3
2 changed files with 61 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.env
|
||||||
|
.DS_Store
|
||||||
|
.idea
|
58
docker-compose.yaml
Executable file
58
docker-compose.yaml
Executable file
|
@ -0,0 +1,58 @@
|
||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
pihole:
|
||||||
|
container_name: pihole
|
||||||
|
image: pihole/pihole:latest
|
||||||
|
hostname: syn-hole
|
||||||
|
# domainname: my.network
|
||||||
|
mac_address: d0:ca:ab:cd:ef:01
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
ports:
|
||||||
|
- 443/tcp
|
||||||
|
- 53/tcp
|
||||||
|
- 53/udp
|
||||||
|
# - 67/udp
|
||||||
|
- 80/tcp
|
||||||
|
environment:
|
||||||
|
ServerIP: 192.168.1.248
|
||||||
|
WEBPASSWORD: ${WEBPASSWORD}
|
||||||
|
# VIRTUAL_HOST: pihole.my.network
|
||||||
|
DNS1: 192.168.1.249
|
||||||
|
DNS2: 192.168.1.13
|
||||||
|
volumes:
|
||||||
|
- /volume1/docker/pihole-unbound/pihole/volume:/etc/pihole:rw
|
||||||
|
- /volume1/docker/pihole-unbound/pihole/config/hosts:/etc/hosts:ro
|
||||||
|
- /volume1/docker/pihole-unbound/pihole/config/resolv.conf:/etc/resolv.conf:ro
|
||||||
|
- /volume1/docker/pihole-unbound/pihole/config/dnsmasq.conf:/etc/dnsmasq.d/02-network.conf:ro
|
||||||
|
- /volume1/docker/pihole-unbound/pihole/config/pihole-FTL.conf:/etc/pihole/pihole-FTL.conf:ro
|
||||||
|
networks:
|
||||||
|
home:
|
||||||
|
ipv4_address: 192.168.1.248
|
||||||
|
restart: always
|
||||||
|
unbound:
|
||||||
|
container_name: unbound
|
||||||
|
image: mvance/unbound:latest
|
||||||
|
hostname: syn-unbound
|
||||||
|
mac_address: d0:ca:ab:cd:ef:02
|
||||||
|
# cap_add:
|
||||||
|
# - NET_ADMIN
|
||||||
|
ports:
|
||||||
|
- 53/tcp
|
||||||
|
- 53/udp
|
||||||
|
networks:
|
||||||
|
home:
|
||||||
|
ipv4_address: 192.168.1.249
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
networks:
|
||||||
|
home:
|
||||||
|
driver: macvlan
|
||||||
|
driver_opts:
|
||||||
|
parent: ovs_eth1
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 192.168.1.0/24
|
||||||
|
gateway: 192.168.1.1
|
||||||
|
ip_range: 192.168.1.248/30
|
Loading…
Reference in a new issue