Skip to content

Instantly share code, notes, and snippets.

@toriaezunama
Last active March 29, 2018 18:39
Show Gist options
  • Save toriaezunama/a0ba60578b99d8b7c120acd38f41f7f6 to your computer and use it in GitHub Desktop.
Save toriaezunama/a0ba60578b99d8b7c120acd38f41f7f6 to your computer and use it in GitHub Desktop.
Docker production checklist

Docker compose

Logs

Restart

Resource limits

docker-compose-prod.yml

Write a production version of your docker compose file that overrides dev only features in the base (dev) version of the docker file. Run with docker-compose -f docker-compose.yml -f docker-compose-prod.yml up -d.

Checks

  • [] Check .env file being used
  • [] Make sure no ports are exposed that don't need to be
  • [] Make sure there are no 'dev' volumes. The only allowable volume is a named volume in the global volumes section

docker machine

...

Tools

Dockerfiles/builds

Security

Misc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment