forked from Nixius/authelia
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:
parent
74a24ffe2a
commit
a92cbe9b72
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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 ==="
|
||||
|
|
|
|||
Loading…
Reference in New Issue