Changes to compose when shifting docker to production

0 votes
Suppose I want to shift my docker containers into production. What all changes am I required to make in my compose file?
Jul 30 in Docker by Alia
20 views

1 answer to this question.

0 votes

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
answered Jul 30 by Vismaya

Related Questions In Docker

0 votes
1 answer

Docker config to edit Node code when run

What you can do is pass environment ...READ MORE

answered Jun 16, 2018 in Docker by shubham
• 6,890 points
29 views
0 votes
1 answer

How to get docker-compose to always re-create containers from fresh images?

The containers are getting recreated to preserve ...READ MORE

answered Jul 27, 2018 in Docker by Kalgi
• 45,780 points
705 views
0 votes
1 answer

Can you use docker-compose files to start services in Docker 1.12 swarm-mode?

Yess, you can. you must download/install the ...READ MORE

answered Aug 10, 2018 in Docker by Kalgi
• 45,780 points
44 views
0 votes
2 answers

How to install docker-compose on Windows?

Docker compose is already installed if you ...READ MORE

answered Apr 15 in Docker by Anudeep
787 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,960 points
251 views
0 votes
1 answer