--- version: "3.8" services: app: image: rocker/tidyverse:4.0.4 networks: - proxy volumes: - home:/home secrets: - admin_password environment: - ROOT=TRUE - PASSWORD_FILE=/run/secrets/admin_password configs: - source: custom_entrypoint target: /usr/local/bin/docker-entrypoint.sh mode: 0555 entrypoint: /usr/local/bin/docker-entrypoint.sh command: /init deploy: restart_policy: condition: on-failure labels: - "traefik.enable=true" - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8787" - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" entrypoint: healthcheck: test: ["CMD-SHELL", "wget -q --spider --proxy=off localhost:8787 || exit 1"] interval: 30s timeout: 10s retries: 10 start_period: 1m volumes: home: networks: proxy: external: true configs: custom_entrypoint: name: ${STACK_NAME}_custom_entrypoint_${CUSTOM_ENTRYPOINT_VERSION} file: entrypoint.sh.tmpl secrets: admin_password: name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION} external: true