generated from coop-cloud/example
Bootstrap this new repo
This commit is contained in:
parent
6d7a4f44c1
commit
06fe2a46e7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Container
|
||||
# container
|
||||
|
||||
Deploy a single container
|
||||
Deploy a single container.
|
||||
|
||||
## Basic usage
|
||||
|
||||
|
|
13
compose.yml
13
compose.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue