Bootstrap this new repo

This commit is contained in:
Luke Murphy 2021-02-14 14:44:40 +01:00
parent 6d7a4f44c1
commit 06fe2a46e7
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
4 changed files with 11 additions and 12 deletions

View File

@ -14,6 +14,8 @@ steps:
DOMAIN: container.swarm-test.autonomic.zone
STACK_NAME: container
LETS_ENCRYPT_ENV: production
PORT: 5000
IMAGE: "decentral1se/biobulkbende.org:latest"
trigger:
branch:
- main

View File

@ -1,6 +1,6 @@
TYPE=${REPO_NAME_KEBAB}
DOMAIN=${REPO_NAME_KEBAB}.example.com
## Domain aliases
#EXTRA_DOMAINS=', `www.${REPO_NAME_KEBAB}.example.com`'
LETS_ENCRYPT_ENV=production
PORT=5000

View File

@ -1,6 +1,6 @@
# Container
# container
Deploy a single container
Deploy a single container.
## Basic usage

View File

@ -3,22 +3,19 @@ version: "3.8"
services:
app:
image: nginx:1.19.2
image: "${IMAGE}"
networks:
- proxy
deploy:
restart_policy:
condition: on-failure
update_config:
failure_action: rollback
order: start-first
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=${PORT}"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s