--- version: "3.8" services: app: image: "decentral1se/pubspace:latest" environment: - MASTODON_ACCESS_TOKEN_FILE=/run/secrets/access_token secrets: - access_token networks: - proxy configs: - source: entrypoint_sh target: /usr/local/bin/entrypoint.sh mode: 0555 entrypoint: /usr/local/bin/entrypoint.sh healthcheck: test: curl --fail 0.0.0.0:8000/healthz || exit 1 deploy: update_config: failure_action: rollback order: start-first labels: - "traefik.enable=true" - "traefik.http.services.kcp.loadbalancer.server.port=8000" - "traefik.http.routers.kcp.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.kcp.entrypoints=web-secure" - "traefik.http.routers.kcp.tls.certresolver=production" command: | uvicorn --host 0.0.0.0 --forwarded-allow-ips="*" --proxy-headers pubspace:app networks: proxy: external: true configs: entrypoint_sh: name: ${STACK_NAME}_entrypoint_conf_${ENTRYPOINT_CONF_VERSION} file: entrypoint.sh.tmpl template_driver: golang secrets: access_token: external: true name: ${STACK_NAME}_access_token_${SECRET_MASTODON_ACCESS_TOKEN}