--- version: "3.8" services: app: secrets: - ig_password environment: - IG_ENABLED - IG_USERNAME - IG_PASSWORD_FILE=/run/secrets/ig_password secrets: ig_password: external: true name: ${STACK_NAME}_ig_password_${SECRET_IG_PASSWORD_VERSION}