1
0
IaC/compose/truenas-apps.yaml

91 lines
2.2 KiB
YAML
Raw Normal View History

2024-12-21 05:17:04 +00:00
# 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:
2024-12-25 06:04:30 +00:00
2024-12-21 05:17:04 +00:00
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
2024-12-25 06:04:30 +00:00
2024-12-21 05:17:04 +00:00
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
2024-12-25 06:04:30 +00:00
minio:
container_name: minio
image: minio/minio
hostname: s3.balsillie.house
restart: unless-stopped
command:
- "server"
- "--address"
- "s3.balsillie.house:9000"
- "--console-address"
- "s3.balsillie.house:443"
- "--certs-dir"
- "/etc/letsencrypt/live/adguard.balsillie.house"
- "/data"
networks:
apps:
ipv4_address: 10.96.10.12
link_local_ips: []
volumes:
- /mnt/hdd/s3:/data
- /mnt/hdd/apps/certbot/etc:/etc/letsencrypt
- /mnt/hdd/apps/certbot/var:/var/lib/letsencrypt