--- version: "3.8" services: app: # the wrapper entrypoint reads /run/secrets/smtp_password and exports # DISCOURSE_SMTP_PASSWORD (the official image has no *_FILE support) secrets: - smtp_password secrets: smtp_password: external: true name: ${STACK_NAME}_smtp_password_${SECRET_SMTP_PASSWORD_VERSION}