39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
# NOTE(d1): switch to fixed tag when published
|
|
image: codeberg.org/eotl/sextant:latest
|
|
networks:
|
|
- proxy
|
|
volumes:
|
|
- sextant_data:/home/sextant
|
|
configs:
|
|
- source: sextant_conf
|
|
target: /home/sextant/.sextant.conf
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8081"
|
|
- "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}"
|
|
# NOTE(d1): switch to version when published
|
|
- "coop-cloud.${STACK_NAME}.version="
|
|
|
|
configs:
|
|
sextant_conf:
|
|
name: ${STACK_NAME}_sextant_conf_${SEXTANT_CONF_VERSION}
|
|
file: sextant.conf.tmpl
|
|
template_driver: golang
|
|
|
|
volumes:
|
|
sextant_data:
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|