Fix some errors and deprecations, add abra.sh #3
@ -16,7 +16,8 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
DOMAIN: example.swarm-test.autonomic.zone # UPDATE ME
|
DOMAIN: example.swarm-test.autonomic.zone # UPDATE ME
|
||||||
STACK_NAME: example_com # UPDATE ME
|
STACK_NAME: example_com # UPDATE ME
|
||||||
LETS_ENCRYPT_ENV: production
|
LETS_ENCRYPT_ENV: staging
|
||||||
|
# Also set any config versions from abra.sh
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
@ -32,7 +33,7 @@ steps:
|
|||||||
from_secret: drone_abra-bot_token
|
from_secret: drone_abra-bot_token
|
||||||
fork: true
|
fork: true
|
||||||
repositories:
|
repositories:
|
||||||
- coop-cloud/auto-recipes-catalogue-json
|
- toolshed/auto-recipes-catalogue-json
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event: tag
|
event: tag
|
||||||
|
2
abra.sh
Executable file
2
abra.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
# Set any config versions here
|
||||||
|
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
|
13
compose.yml
13
compose.yml
@ -1,9 +1,7 @@
|
|||||||
---
|
---
|
||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: nginx:1.20.0
|
image: nginx:1.27.5
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
deploy:
|
deploy:
|
||||||
@ -17,9 +15,14 @@ services:
|
|||||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
## Redirect from EXTRA_DOMAINS to DOMAIN
|
## Redirect from EXTRA_DOMAINS to DOMAIN
|
||||||
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
## Redirect HTTP to HTTPS
|
||||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
# - "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.scheme=https"
|
||||||
|
# - "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.permanent=true"
|
||||||
|
## When you're ready for release, run "abra recipe sync <name>" to set this
|
||||||
- "coop-cloud.${STACK_NAME}.version="
|
- "coop-cloud.${STACK_NAME}.version="
|
||||||
|
## Enable backups: https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-configure-backuprestore
|
||||||
|
# - "backupbot.backup=true"
|
||||||
|
# - "backupbot.backup.path=/some/path"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost"]
|
test: ["CMD", "curl", "-f", "http://localhost"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user