forked from Nixius/authelia
1
0
Fork 0

Add header to stack-template, force-update images on deploy

- stack-template.yml: prominent comment explaining this is the product
  being sold and how to swap in the real application image
- deploy-stack-dev.sh: force-update locally-built images after stack
  deploy so swarm always runs the freshly built container

Made-with: Cursor
This commit is contained in:
Leopere 2026-03-03 16:48:03 -05:00
parent 74a24ffe2a
commit a92cbe9b72
Signed by: colin
SSH Key Fingerprint: SHA256:nRPCQTeMFLdGytxRQmPVK9VXY3/ePKQ5lGRyJhT5DY8
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,22 @@
# =============================================================================
# CUSTOMER STACK TEMPLATE
# =============================================================================
# This is the Docker Swarm stack that gets deployed for each paying customer.
# It defines what product/service they receive when they subscribe.
#
# REPLACE the `web` service image (currently traefik/whoami as a placeholder)
# with the actual application you are selling.
#
# Template variables (injected at deploy time by swarm/client.go):
# {{.ID}} - customer's username (used for unique resource naming)
# {{.Subdomain}} - customer's subdomain (same as ID by default)
# {{.Domain}} - base domain (e.g. bc.a250.ca)
# {{.TraefikNetwork}} - Traefik overlay network name
#
# Each customer gets their stack at: https://{{.Subdomain}}.{{.Domain}}
# Access is restricted to the owning user via Authelia forward-auth.
# =============================================================================
version: "3.8"
services:

View File

@ -30,5 +30,9 @@ docker compose build \
echo "=== Deploying stack ==="
docker stack deploy -c stack.yml atlas
echo "=== Force-updating local images ==="
docker service update --force --image atlas-ss-atlas:latest atlas_ss-atlas
docker service update --force --image git.nixc.us/a250/authelia:dev-authelia atlas_authelia
echo ""
echo "=== Ready. Visit https://app.bc.a250.ca ==="