0

I am developing a small social-media project using nodejs, postgresql and nginx on a backend.

Locally, I worked with Docker as a replacement for a Vagrant, I have all entities split between separate containers and combined them via docker-compose.

I do not have production experience with Docker. How should I pack result of docker-compose, and deploy?

2
  • Where do you normally deploy your projects? Commented Dec 4, 2016 at 2:32
  • For this project I have EC2 AWS Commented Dec 4, 2016 at 18:06

2 Answers 2

2

You can build and publish the individual docker images, and do the same docker-compose on your production servers. Of course, the servers have to be logged into the registry if it is a private one.

Sample:

version: '2'
services:
  application1:
    image: your.docker.registry/image-application1

  application2:
    image: your.docker.registry/image-application2
    depends_on:
      - application1

The images can be built and pushed to a registry as part of your regular build process.

Sign up to request clarification or add additional context in comments.

Comments

1

You do not need to modifiy containers to make them production ready, other than what is described here. What you need to do is ensure you are deploying them to a High Availability system that can respond to failures by respawning processes. Here are some examples:

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.