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, 2019 in Docker by Alia
501 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, 2019 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 17, 2018 in Docker by shubham
• 7,340 points
846 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
• 52,350 points
4,702 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
• 52,350 points
689 views
0 votes
2 answers

How to install docker-compose on Windows?

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

answered Apr 15, 2019 in Docker by Anudeep
4,595 views
+2 votes
1 answer
+2 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
• 58,020 points
2,714 views
0 votes
1 answer

Efficient way to run a Docker Compose stack in production?

Here is a concept which you can ...READ MORE

answered Aug 2, 2018 in Docker by Damon Salvatore
• 5,980 points
1,130 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP