Add stack.staging.yml

This commit is contained in:
colin 2024-03-09 19:22:08 +00:00
parent 2bbc0e7a0c
commit 9e4314aa56
1 changed files with 37 additions and 0 deletions

37
stack.staging.yml Normal file
View File

@ -0,0 +1,37 @@
version: "3.7"
networks:
traefik:
external: true
services:
top:
# image: lscr.io/linuxserver/webtop:ubuntu-kde
# image: codeberg.org/dowerent/ubuntu-webtop:latest
image: git.nixc.us/colin/top:staging
environment:
TZ: America/New_York
networks:
- traefik
dns:
- 8.8.8.8
- 4.4.4.4
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock:ro
# - /mnt/tank/persist/nixc.us/top/staging/config:/config
deploy:
placement:
constraints:
# - node.labels.role == db
- node.hostname == macmini14
# - node.labels.mac-rack == true
labels:
- "traefik.enable=true"
- "traefik.http.routers.staging_top.tls=true"
- "traefik.http.services.staging_top.loadbalancer.server.port=3000"
- "traefik.http.routers.staging_top.rule=Host(`staging.top.nixc.us`)"
- "traefik.http.routers.staging_top.entrypoints=websecure"
- "traefik.http.routers.staging_top.tls.certresolver=letsencryptresolver"
- "traefik.http.routers.staging_top.service=top"
- "traefik.docker.network=traefik"
- 'traefik.http.routers.staging_top.middlewares=authelia_authelia@docker'