0 votes
in Docker by
What changes are expected in your docker compose file while moving it to production?

1 Answer

0 votes
by

These are the following changes you need make to your compose file before migrating your application to the production environment:

  • Remove volume bindings, so the code stays inside the container and cannot be changed from outside the container.
  • Binding to different ports on the host.
  • Specify a restart policy
  • Add extra services like log aggregator
...