1
0
Fork 0

Update stack.yml

This commit is contained in:
colin 2023-11-21 17:24:47 +00:00
parent 9455a06b6b
commit c1247366a6
2 changed files with 28 additions and 33 deletions

28
stack.yml Normal file
View File

@ -0,0 +1,28 @@
version: "3.9"
networks:
traefik:
external: true
services:
nginx:
image: git.nixc.us/colin/lan-to-nginx:latest
environment:
- BACKEND_ADDRESS=replaceme
- BACKEND_PORT=443
- PROTOCOL=https
networks:
- traefik
deploy:
replicas: 1
labels:
- "us.nixc.autodeploy=true"
- "traefik.enable=true"
- "traefik.http.routers.nginx-proxy.tls=true"
- "traefik.http.services.nginx-proxy.loadbalancer.server.port=80"
- "traefik.http.routers.nginx-proxy.rule=Host(`nginx-proxy.nixc.us`)"
- "traefik.http.routers.nginx-proxy.entrypoints=websecure"
- "traefik.http.routers.nginx-proxy.tls.certresolver=letsencryptresolver"
- "traefik.http.routers.nginx-proxy.service=nginx-proxy"
- "traefik.docker.network=traefik"
# - 'traefik.http.routers.nginx-proxy.middlewares=authelia_authelia@docker'

View File

@ -1,33 +0,0 @@
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-proxy.tls=true"
- "traefik.http.services.truenas-proxy.loadbalancer.server.port=80"
- "traefik.http.routers.truenas-proxy.rule=Host(`truenas.nixc.us`)"
- "traefik.http.routers.truenas-proxy.entrypoints=websecure"
- "traefik.http.routers.truenas-proxy.tls.certresolver=letsencryptresolver"
- "traefik.http.routers.truenas-proxy.service=truenas-proxy"
- "traefik.docker.network=traefik"
# - 'traefik.http.routers.truenas-proxy.middlewares=authelia_authelia@docker'