65 lines
2.5 KiB
YAML
65 lines
2.5 KiB
YAML
---
|
|
services:
|
|
app:
|
|
image: codeberg.org/devydave/slopsmith:0.2.9-alpha.4
|
|
volumes:
|
|
- slopsmith-data:/dlc
|
|
# Persistent config and cache
|
|
- slopsmith-config:/config
|
|
environment:
|
|
- PYTHONPATH=/app/lib:/app
|
|
- DLC_DIR=/dlc
|
|
- CONFIG_DIR=/config
|
|
- RSCLI_PATH=/opt/rscli/RsCli
|
|
- DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
|
|
networks:
|
|
- proxy
|
|
configs:
|
|
- source: app_entrypoint
|
|
target: /app/app-entrypoint.sh
|
|
mode: 0555
|
|
entrypoint: ["/app/app-entrypoint.sh"]
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8000"
|
|
- "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}"
|
|
## Edit the following line if you are using one, but not both, "Redirect" sections below
|
|
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirectscheme,${STACK_NAME}-redirecthostname"
|
|
## Redirect from EXTRA_DOMAINS to DOMAIN
|
|
# - "traefik.http.middlewares.${STACK_NAME}-redirecthostname.redirectregex.regex=^http[s]?://([^/]*)/(.*)"
|
|
# - "traefik.http.middlewares.${STACK_NAME}-redirecthostname.redirectregex.replacement=https://${DOMAIN}/$${2}"
|
|
# - "traefik.http.middlewares.${STACK_NAME}-redirecthostname.redirectregex.permanent=true"
|
|
## Redirect HTTP to HTTPS
|
|
# - "traefik.http.middlewares.${STACK_NAME}-redirectscheme.redirectscheme.scheme=https"
|
|
# - "traefik.http.middlewares.${STACK_NAME}-redirectscheme.redirectscheme.permanent=true"
|
|
## When you're ready for release, run "abra recipe sync <name>" to set this
|
|
- "coop-cloud.${STACK_NAME}.version=0.1.0+0.2.9-alpha.4"
|
|
## Enable backups: https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-configure-backuprestore
|
|
# - "backupbot.backup=true"
|
|
# - "backupbot.backup.path=/some/path"
|
|
# healthcheck:
|
|
# test: ["CMD", "curl", "-f", "http://localhost:8000"]
|
|
# interval: 30s
|
|
# timeout: 10s
|
|
# retries: 10
|
|
# start_period: 1m
|
|
|
|
volumes:
|
|
slopsmith-config:
|
|
slopsmith-data:
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
|
|
configs:
|
|
app_entrypoint:
|
|
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
|
|
file: app-entrypoint.sh.tmpl
|
|
template_driver: golang
|