72 lines
1.6 KiB
YAML
72 lines
1.6 KiB
YAML
# Docker compose file for truenas apps
|
|
|
|
name: "apps"
|
|
|
|
# Network
|
|
|
|
networks:
|
|
apps:
|
|
attachable: true
|
|
driver: macvlan
|
|
driver_opts:
|
|
macvlan_mode: bridge
|
|
parent: eno1
|
|
enable_ipv6: false
|
|
external: false
|
|
internal: false
|
|
ipam:
|
|
config:
|
|
- subnet: "10.96.10.0/24"
|
|
ip_range: "10.96.10.224/28"
|
|
gateway: "10.96.10.254"
|
|
name: apps
|
|
|
|
services:
|
|
adguard:
|
|
container_name: adguard
|
|
image: adguard/adguardhome
|
|
restart: unless-stopped
|
|
networks:
|
|
apps:
|
|
ipv4_address: 10.96.10.53
|
|
link_local_ips: []
|
|
# ports:
|
|
# - "53:53/tcp"
|
|
# - "53:53/udp"
|
|
# - "80:80/tcp"
|
|
# - "443:443/tcp"
|
|
volumes:
|
|
- /mnt/hdd/apps/adguard/work:/opt/adguardhome/work
|
|
- /mnt/hdd/apps/adguard/conf:/opt/adguardhome/conf
|
|
- /mnt/hdd/apps/certbot/etc:/etc/letsencrypt
|
|
- /mnt/hdd/apps/certbot/var:/var/lib/letsencrypt
|
|
certbot:
|
|
container_name: certbot
|
|
image: certbot/dns-cloudflare
|
|
restart: "no"
|
|
networks:
|
|
apps:
|
|
ipv4_address: 10.96.10.11
|
|
link_local_ips: []
|
|
command: >-
|
|
certonly --dns-cloudflare
|
|
--dns-cloudflare-credentials /etc/letsencrypt/credentials.ini
|
|
--dns-cloudflare-propagation-seconds 20
|
|
--email certbot-apps@balsillie.email
|
|
--non-interactive
|
|
--expand
|
|
--no-eff-email
|
|
--agree-tos
|
|
-d adguard.balsillie.house
|
|
-d unifi.balsillie.house
|
|
-d s3.balsillie.house
|
|
-d registry.balsillie.house
|
|
volumes:
|
|
- /mnt/hdd/apps/certbot/etc:/etc/letsencrypt
|
|
- /mnt/hdd/apps/certbot/var:/var/lib/letsencrypt
|
|
|
|
# Certbot
|
|
|
|
# Adguard
|
|
|
|
# Minio |