--- version: "3.8" services: app: environment: - HTTPS_PASSWORD_FILE=/run/secrets/https_password - RESTIC_USER secrets: - source: https_password mode: 0400 secrets: https_password: external: true name: ${STACK_NAME}_https_password_${SECRET_HTTPS_PASSWORD_VERSION}