2022-12-05 16:47:35 +01:00
|
|
|
version: '3'
|
|
|
|
services:
|
2023-04-13 18:43:32 +02:00
|
|
|
traefik:
|
|
|
|
container_name: traefik
|
|
|
|
image: traefik:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
net: {}
|
|
|
|
volumes:
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
|
|
- "{{ traefik_config }}:/etc/traefik/"
|
|
|
|
- "{{ traefik_data }}:/var/log/"
|
|
|
|
ports:
|
|
|
|
- "{{ traefik_user_port}}:80"
|
|
|
|
- "{{ traefik_admin_port}}:8080"
|
|
|
|
|
2022-12-05 16:47:35 +01:00
|
|
|
db:
|
2022-12-29 22:45:17 +01:00
|
|
|
container_name: zoneminder_db
|
2022-12-05 16:47:35 +01:00
|
|
|
image: mariadb
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- zoneminder
|
|
|
|
volumes:
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{ zoneminder_db }}:/var/lib/mysql"
|
2022-12-05 16:47:35 +01:00
|
|
|
environment:
|
2023-04-13 18:43:32 +02:00
|
|
|
- "MYSQL_DATABASE={{ zoneminder_host }}"
|
2022-12-05 16:47:35 +01:00
|
|
|
- "MYSQL_ROOT_PASSWORD={{ vault_mysql_root_password }}"
|
|
|
|
- "MYSQL_USER={{ mysql_user }}"
|
|
|
|
- "MYSQL_PASSWORD={{ vault_mysql_user_password }}"
|
2022-12-05 18:25:36 +01:00
|
|
|
- "MAX_LOG_SIZE_BYTES=1000000"
|
|
|
|
- "MAX_LOG_NUMBER=20"
|
|
|
|
- "TZ=Europe/Berlin"
|
2022-12-05 16:47:35 +01:00
|
|
|
zoneminder:
|
2022-12-29 22:45:17 +01:00
|
|
|
container_name: zoneminder
|
2022-12-05 16:47:35 +01:00
|
|
|
image: ghcr.io/zoneminder-containers/zoneminder-base:latest
|
|
|
|
restart: always
|
|
|
|
stop_grace_period: 45s
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
networks:
|
|
|
|
- zoneminder
|
2022-12-05 18:25:36 +01:00
|
|
|
- net
|
2023-02-09 01:14:30 +01:00
|
|
|
ports:
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{ zoneminder_port }}:80"
|
2022-12-05 16:47:35 +01:00
|
|
|
volumes:
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2022-12-06 16:36:21 +01:00
|
|
|
- "{{ zoneminder_data }}:/data"
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{ zoneminder_config }}:/config"
|
|
|
|
- "{{ zoneminder_log}}:/log"
|
2022-12-05 16:47:35 +01:00
|
|
|
- type: tmpfs
|
|
|
|
target: /dev/shm
|
|
|
|
tmpfs:
|
|
|
|
size: 1000000000
|
|
|
|
environment:
|
2023-04-13 18:43:32 +02:00
|
|
|
- "MYSQL_DATABASE={{ zoneminder_host }}"
|
2022-12-05 18:25:36 +01:00
|
|
|
- "MYSQL_ROOT_PASSWORD={{ vault_mysql_root_password }}"
|
|
|
|
- "MYSQL_USER={{ mysql_user }}"
|
|
|
|
- "MYSQL_PASSWORD={{ vault_mysql_user_password }}"
|
|
|
|
- "MAX_LOG_SIZE_BYTES=1000000"
|
|
|
|
- "MAX_LOG_NUMBER=20"
|
|
|
|
- "TZ=Europe/Berlin"
|
2023-04-13 18:43:32 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-04-14 14:01:17 +02:00
|
|
|
- "traefik.http.routers.{{ zoneminder_host }}.rule=Host(`{{ zoneminder_host}}.{{ aya01_host }}.{{ local_domain }}`)"
|
|
|
|
- "traefik.http.services.{{ zoneminder_host }}.loadbalancer.server.port=80"
|
2022-12-21 22:28:46 +01:00
|
|
|
|
2022-12-08 23:54:31 +01:00
|
|
|
pihole:
|
|
|
|
container_name: pihole
|
|
|
|
image: pihole/pihole:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
2022-12-29 22:45:17 +01:00
|
|
|
- net
|
2022-12-08 23:54:31 +01:00
|
|
|
ports:
|
|
|
|
- "53:53/tcp"
|
|
|
|
- "53:53/udp"
|
|
|
|
- "67:67/udp"
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{ pihole_port }}:80/tcp"
|
2023-02-09 01:14:30 +01:00
|
|
|
volumes:
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{ pihole_config }}:/etc/pihole/"
|
2023-02-09 01:14:30 +01:00
|
|
|
- "{{ pihole_dnsmasq }}:/etc/dnsmasq.d/"
|
2022-12-08 23:54:31 +01:00
|
|
|
environment:
|
2023-04-14 19:02:45 +02:00
|
|
|
- PUID={{puid}}
|
|
|
|
- PGID={{pgid}}
|
|
|
|
- TZ={{timezone}}
|
2022-12-08 23:54:31 +01:00
|
|
|
- "WEBPASSWORD={{ vault_aya01_pihole_password }}"
|
2022-12-29 22:45:17 +01:00
|
|
|
- "ServerIP={{aya01_ip}}"
|
2022-12-08 23:54:31 +01:00
|
|
|
- "INTERFACE=eth0"
|
|
|
|
- "DNS1=1.1.1.1"
|
|
|
|
- "DNS1=1.0.0.1"
|
|
|
|
dns:
|
|
|
|
- 127.0.0.1
|
|
|
|
- 1.1.1.1
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
2023-04-13 18:43:32 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-04-14 14:01:17 +02:00
|
|
|
- "traefik.http.routers.{{ pihole_host }}.rule=Host(`{{ pihole_host }}.{{ aya01_host }}.{{ local_domain }}`)"
|
2023-04-14 20:46:32 +02:00
|
|
|
- "traefik.http.services.{{ pihole_host }}.loadbalancer.server.port=80"
|
2022-12-21 22:28:46 +01:00
|
|
|
|
2023-04-14 14:01:17 +02:00
|
|
|
syncthing:
|
2022-12-10 03:21:11 +01:00
|
|
|
container_name: syncthing
|
2023-02-09 01:14:30 +01:00
|
|
|
image: syncthing/syncthing
|
|
|
|
restart: unless-stopped
|
2022-12-10 03:21:11 +01:00
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
ports:
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{ syncthing_port }}:8384" # Web UI
|
2022-12-10 03:21:11 +01:00
|
|
|
- 22000:22000/tcp # TCP file transfers
|
|
|
|
- 22000:22000/udp # QUIC file transfers
|
|
|
|
- 21027:21027/udp # Receive local discovery broadcasts
|
2023-02-09 01:14:30 +01:00
|
|
|
volumes:
|
|
|
|
- "{{syncthing_data}}:/var/syncthing"
|
|
|
|
environment:
|
2023-04-14 19:02:45 +02:00
|
|
|
- PUID={{puid}}
|
|
|
|
- PGID={{pgid}}
|
|
|
|
- TZ={{timezone}}
|
2023-02-09 01:14:30 +01:00
|
|
|
hostname: syncthing
|
2023-04-13 18:43:32 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-04-14 14:01:17 +02:00
|
|
|
- "traefik.http.routers.{{ syncthing_host }}.rule=Host(`{{ syncthing_host }}.{{ aya01_host }}.{{ local_domain }}`)"
|
|
|
|
- "traefik.http.services.{{ syncthing_host }}.loadbalancer.server.port={{ syncthing_port }}"
|
2022-12-29 22:45:17 +01:00
|
|
|
|
2022-12-21 22:28:46 +01:00
|
|
|
soft-serve:
|
|
|
|
container_name: soft-serve
|
2023-02-09 01:14:30 +01:00
|
|
|
image: charmcli/soft-serve:latest
|
|
|
|
restart: unless-stopped
|
2022-12-29 22:45:17 +01:00
|
|
|
networks:
|
|
|
|
- net
|
2023-04-14 19:02:45 +02:00
|
|
|
environment:
|
|
|
|
- PUID={{puid}}
|
|
|
|
- PGID={{pgid}}
|
|
|
|
- TZ={{timezone}}
|
2022-12-21 22:28:46 +01:00
|
|
|
ports:
|
2023-04-13 18:43:32 +02:00
|
|
|
- 23231:23231 # ssh
|
2023-02-09 01:14:30 +01:00
|
|
|
volumes:
|
|
|
|
- "{{ softserve_data }}:/soft-serve"
|
2022-12-05 16:47:35 +01:00
|
|
|
|
2023-04-13 18:43:32 +02:00
|
|
|
cupsd:
|
|
|
|
container_name: cupsd
|
|
|
|
image: olbat/cupsd
|
2023-02-09 01:14:30 +01:00
|
|
|
restart: unless-stopped
|
2022-12-29 22:45:17 +01:00
|
|
|
networks:
|
|
|
|
- net
|
2023-04-14 19:02:45 +02:00
|
|
|
environment:
|
|
|
|
- PUID={{puid}}
|
|
|
|
- PGID={{pgid}}
|
|
|
|
- TZ={{timezone}}
|
2023-02-09 01:14:30 +01:00
|
|
|
ports:
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{cupsd_port}}:631"
|
2022-12-29 22:45:17 +01:00
|
|
|
volumes:
|
2023-04-13 18:43:32 +02:00
|
|
|
- /var/run/dbus:/var/run/dbus
|
|
|
|
- "{{cupsd_config}}:/etc/cups"
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-04-14 14:01:17 +02:00
|
|
|
- "traefik.http.routers.{{ cupsd_host }}.rule=Host(`{{ cupsd_host }}.{{ aya01_host }}.{{local_domain}}`)"
|
|
|
|
- "traefik.http.services.{{ cupsd_host }}.loadbalancer.server.port={{ cupsd_port }}"
|
2022-12-29 22:45:17 +01:00
|
|
|
|
2023-04-13 18:43:32 +02:00
|
|
|
kuma:
|
|
|
|
container_name: kuma
|
|
|
|
image: louislam/uptime-kuma:1
|
|
|
|
restart: always
|
2022-12-29 22:45:17 +01:00
|
|
|
networks:
|
|
|
|
- net
|
2023-04-14 19:02:45 +02:00
|
|
|
environment:
|
|
|
|
- PUID={{puid}}
|
|
|
|
- PGID={{pgid}}
|
|
|
|
- TZ={{timezone}}
|
2022-12-29 22:45:17 +01:00
|
|
|
ports:
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{ kuma_port }}:3001"
|
2022-12-29 22:45:17 +01:00
|
|
|
volumes:
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{ kuma_config }}:/app/data"
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-04-14 14:01:17 +02:00
|
|
|
- "traefik.http.routers.{{kuma_host}}.rule=Host(`{{ kuma_host }}.{{ aya01_host }}.{{local_domain}}`)"
|
|
|
|
- "traefik.http.services.{{kuma_host}}.loadbalancer.server.port={{ kuma_port }}"
|
|
|
|
|
|
|
|
plex:
|
|
|
|
image: lscr.io/linuxserver/plex:latest
|
|
|
|
container_name: plex
|
|
|
|
restart: always
|
2023-04-17 16:23:16 +02:00
|
|
|
ip: {{ plex_ip }}
|
2023-04-14 14:01:17 +02:00
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
ports:
|
|
|
|
- "{{ plex_port }}:32400"
|
|
|
|
- "1900:1900"
|
|
|
|
- "3005:3005"
|
|
|
|
- "5353:5353"
|
|
|
|
- "32410:32410"
|
|
|
|
- "8324:8324"
|
|
|
|
- "32412:32412"
|
|
|
|
- "32469:32469"
|
|
|
|
environment:
|
|
|
|
- PUID={{puid}}
|
|
|
|
- PGID={{pgid}}
|
|
|
|
- TZ={{timezone}}
|
|
|
|
- VERSION=docker
|
|
|
|
volumes:
|
|
|
|
- "{{ plex_config }}:/config"
|
|
|
|
- "{{ plex_tv }}:/tv"
|
|
|
|
- "{{ plex_movies }}:/movies"
|
2023-04-14 19:02:45 +02:00
|
|
|
- "{{ plex_music }}:/music"
|
2023-04-14 14:01:17 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.{{plex_host}}.rule=Host(`{{ plex_host }}.{{ aya01_host }}.{{local_domain}}`)"
|
|
|
|
- "traefik.http.services.{{plex_host}}.loadbalancer.server.port={{ plex_port }}"
|
2022-12-29 22:45:17 +01:00
|
|
|
|
2023-04-14 19:02:45 +02:00
|
|
|
sonarr:
|
|
|
|
image: lscr.io/linuxserver/sonarr:latest
|
|
|
|
container_name: sonarr
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
environment:
|
|
|
|
- PUID={{ puid }}
|
|
|
|
- PGID={{ pgid }}
|
|
|
|
- TZ={{ timezone }}
|
|
|
|
volumes:
|
|
|
|
- {{ sonarr_config }}:/config
|
|
|
|
- {{ sonarr_media }}:/tv #optional
|
|
|
|
- {{ sonarr_downloads }}:/downloads #optional
|
|
|
|
ports:
|
|
|
|
- {{ sonarr_port }}:8989
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.{{sonarr_host}}.rule=Host(`{{ sonarr_host }}.{{ aya01_host }}.{{local_domain}}`)"
|
|
|
|
- "traefik.http.services.{{sonarr_host}}.loadbalancer.server.port={{ sonarr_port }}"
|
|
|
|
|
|
|
|
radarr:
|
|
|
|
image: lscr.io/linuxserver/radarr:latest
|
|
|
|
container_name: radarr
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
environment:
|
|
|
|
- PUID={{ puid }}
|
|
|
|
- PGID={{ pgid }}
|
|
|
|
- TZ={{ timezone }}
|
|
|
|
volumes:
|
|
|
|
- {{ radarr_config }}:/config
|
|
|
|
- {{ radarr_media }}:/movies #optional
|
|
|
|
- {{ radarr_downloads }}:/downloads #optional
|
|
|
|
ports:
|
|
|
|
- {{ radarr_port }}:7878
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.{{radarr_host}}.rule=Host(`{{ radarr_host }}.{{ aya01_host }}.{{local_domain}}`)"
|
|
|
|
- "traefik.http.services.{{radarr_host}}.loadbalancer.server.port={{ radarr_port }}"
|
|
|
|
|
|
|
|
lidarr:
|
|
|
|
image: lscr.io/linuxserver/lidarr:latest
|
|
|
|
container_name: lidarr
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
environment:
|
|
|
|
- PUID={{ puid }}
|
|
|
|
- PGID={{ pgid }}
|
|
|
|
- TZ={{ timezone }}
|
|
|
|
volumes:
|
|
|
|
- {{ lidarr_config }}:/config
|
|
|
|
- {{ lidarr_media }}:/music #optional
|
|
|
|
- {{ lidarr_downloads }}:/downloads #optional
|
|
|
|
ports:
|
|
|
|
- {{ lidarr_port }}:8686
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.{{lidarr_host}}.rule=Host(`{{ lidarr_host }}.{{ aya01_host }}.{{local_domain}}`)"
|
|
|
|
- "traefik.http.services.{{lidarr_host}}.loadbalancer.server.port={{ lidarr_port }}"
|
|
|
|
|
|
|
|
prowlarr:
|
|
|
|
image: lscr.io/linuxserver/prowlarr:latest
|
|
|
|
container_name: prowlarr
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
environment:
|
|
|
|
- PUID={{ puid }}
|
|
|
|
- PGID={{ pgid }}
|
|
|
|
- TZ={{ timezone }}
|
|
|
|
volumes:
|
|
|
|
- {{ prowlarr_config }}:/config
|
|
|
|
ports:
|
|
|
|
- {{ prowlarr_port }}:9696
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.{{prowlarr_host}}.rule=Host(`{{ prowlarr_host }}.{{ aya01_host }}.{{local_domain}}`)"
|
|
|
|
- "traefik.http.services.{{prowlarr_host}}.loadbalancer.server.port={{ prowlarr_port }}"
|
|
|
|
|
2022-12-05 16:47:35 +01:00
|
|
|
networks:
|
|
|
|
zoneminder:
|
2023-04-14 14:01:17 +02:00
|
|
|
driver: bridge
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: 172.16.42.0/24
|
2022-12-05 18:25:36 +01:00
|
|
|
net:
|
2022-12-05 16:47:35 +01:00
|
|
|
driver: bridge
|
|
|
|
ipam:
|
2022-12-08 23:12:56 +01:00
|
|
|
driver: default
|
2022-12-05 16:47:35 +01:00
|
|
|
config:
|
|
|
|
- subnet: 172.16.69.0/24
|