--- version: "3.8" services: app: environment: - EMAIL_SMTP=true - EMAIL_SMTP_PASSWORD_FILE=/run/secrets/email_smtp_password - FROM_EMAIL - EMAIL_SMTP_USE_TLS - EMAIL_SMTP_HOST - EMAIL_SMTP_PORT - EMAIL_SMTP_USER secrets: - email_smtp_password secrets: email_smtp_password: external: true name: ${STACK_NAME}_email_smtp_password_${SECRET_EMAIL_SMTP_PASSWORD_VERSION}