--- version: "3.8" services: app: image: git.coopcloud.tech/coop-cloud-chaos-patchs/docker-writefreely:v0.16.0 configs: - source: config_ini # Can't put the config file in /data or else the volume mounts conflict target: ${ASSETS_PATH}/config.ini - source: writefreely_entrypoint target: /abra-entrypoint.sh mode: 0555 entrypoint: /abra-entrypoint.sh volumes: - "local-data:${DATA_PATH}" networks: - internal - proxy deploy: update_config: failure_action: rollback order: start-first labels: - "traefik.enable=true" - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8080" - "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}" - "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" - "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.scheme=https" - "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.permanent=true" - "coop-cloud.${STACK_NAME}.version=1.0.0+v0.16.0" volumes: local-data: networks: proxy: external: true internal: configs: config_ini: name: ${STACK_NAME}_config_${CONFIG_INI_VERSION} file: config.ini.tmpl template_driver: golang writefreely_entrypoint: name: ${STACK_NAME}_entrypoint_${WRITEFREELY_ENTRYPOINT_VERSION} file: entrypoint.sh