Create Stack with Secrets

  • Let's use our Drupal compose file from last assignment

  • Rename image back to official drupal:8.2

  • Remove build:

  • Add secret via external:

  • use environment variable POSTGRES_PASSWORD_FILE

  • Add secret via cli echo "<pwd" | docker secret create psql-pw -

  • Copy compose into a new yml file on your Swarm node1

Last updated

Was this helpful?