96 lines
3.4 KiB
YAML
96 lines
3.4 KiB
YAML
version: "3.9"
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
|
|
services:
|
|
truenas:
|
|
image: codeberg.org/iridium-net/lan-to-nginx:truenas
|
|
environment:
|
|
- BACKEND_ADDRESS=192.168.8.47
|
|
- BACKEND_PORT=443
|
|
- PROTOCOL=https
|
|
- MATOMO_URL=//m.nixc.us/ # Replace with your actual Matomo URL if different.
|
|
- MATOMO_SITE_ID=1 # Replace with your actual Site ID if different.
|
|
networks:
|
|
- traefik
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.hostname == macmini7
|
|
labels:
|
|
- "us.nixc.autodeploy=true"
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.truenas-truenas.tls=true"
|
|
- "traefik.http.services.truenas-truenas.loadbalancer.server.port=80"
|
|
- "traefik.http.routers.truenas-truenas.rule=Host(`truenas.nixc.us`)"
|
|
- "traefik.http.routers.truenas-truenas.entrypoints=websecure"
|
|
- "traefik.http.routers.truenas-truenas.tls.certresolver=letsencryptresolver"
|
|
- "traefik.http.routers.truenas-truenas.service=truenas-truenas"
|
|
- "traefik.docker.network=traefik"
|
|
- 'traefik.http.routers.truenas-truenas.middlewares=authelia_authelia@docker'
|
|
logging:
|
|
driver: "gelf"
|
|
options:
|
|
gelf-address: "udp://log.nixc.us:15124"
|
|
tag: "truenas_truenas"
|
|
minio-api:
|
|
image: codeberg.org/iridium-net/lan-to-nginx:truenas
|
|
environment:
|
|
- BACKEND_ADDRESS=192.168.8.47
|
|
- BACKEND_PORT=9000
|
|
- PROTOCOL=http
|
|
networks:
|
|
- traefik
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.hostname == macmini7
|
|
labels:
|
|
- "us.nixc.autodeploy=true"
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.truenas-minio-api.tls=true"
|
|
- "traefik.http.services.truenas-minio-api.loadbalancer.server.port=80"
|
|
- "traefik.http.routers.truenas-minio.rule=Host(`minio.nixc.us`)"
|
|
- "traefik.http.routers.truenas-minio.entrypoints=websecure"
|
|
- "traefik.http.routers.truenas-minio.tls.certresolver=letsencryptresolver"
|
|
- "traefik.http.routers.truenas-minio.service=truenas-minio"
|
|
- "traefik.docker.network=traefik"
|
|
# - 'traefik.http.routers.truenas-minio.middlewares=authelia_authelia@docker'
|
|
logging:
|
|
driver: "gelf"
|
|
options:
|
|
gelf-address: "udp://log.nixc.us:15124"
|
|
tag: "truenas_minio"
|
|
minio-api:
|
|
image: codeberg.org/iridium-net/lan-to-nginx:truenas
|
|
environment:
|
|
- BACKEND_ADDRESS=192.168.8.47
|
|
- BACKEND_PORT=9002
|
|
- PROTOCOL=http
|
|
networks:
|
|
- traefik
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.hostname == macmini7
|
|
labels:
|
|
- "us.nixc.autodeploy=true"
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.truenas-minio-api.tls=true"
|
|
- "traefik.http.services.truenas-minio-api.loadbalancer.server.port=80"
|
|
- "traefik.http.routers.truenas-minio-api.rule=Host(`minio-api.nixc.us`)"
|
|
- "traefik.http.routers.truenas-minio-api.entrypoints=websecure"
|
|
- "traefik.http.routers.truenas-minio-api.tls.certresolver=letsencryptresolver"
|
|
- "traefik.http.routers.truenas-minio-api.service=truenas-minio-api"
|
|
- "traefik.docker.network=traefik"
|
|
# - 'traefik.http.routers.truenas-minio-api.middlewares=authelia_authelia@docker'
|
|
logging:
|
|
driver: "gelf"
|
|
options:
|
|
gelf-address: "udp://log.nixc.us:15124"
|
|
tag: "truenas_minio-api" |