--- version: "3.8" services: app: image: rocker/tidyverse:4.3.2 networks: - proxy volumes: - home:/home - library:/usr/local/lib/R/site-library/ secrets: - admin_password environment: - DEFAULT_LOCALES - DOMAIN=${DOMAIN} - PASSWORD_FILE=/run/secrets/admin_password - ROOT=TRUE configs: - source: custom_entrypoint target: /docker-entrypoint.sh mode: 0555 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}" - "coop-cloud.${STACK_NAME}.version=0.4.0+4.3.2" entrypoint: /docker-entrypoint.sh command: /init volumes: home: library: networks: proxy: external: true configs: custom_entrypoint: name: ${STACK_NAME}_custom_entrypoint_${CUSTOM_ENTRYPOINT_VERSION} file: entrypoint.sh.tmpl template_driver: golang secrets: admin_password: name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION} external: true