From 9e4314aa565937f9f0d16d899b1c38a8c1717cf7 Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 9 Mar 2024 19:22:08 +0000 Subject: [PATCH] Add stack.staging.yml --- stack.staging.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 stack.staging.yml diff --git a/stack.staging.yml b/stack.staging.yml new file mode 100644 index 0000000..12cd291 --- /dev/null +++ b/stack.staging.yml @@ -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' \ No newline at end of file