Oleksandr Knyga
Oleksandr Knyga

Reputation: 633

Docker workflow

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?

Upvotes: 0

Views: 92

Answers (2)

code_monk
code_monk

Reputation: 10130

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:

Upvotes: 1

The_Tourist
The_Tourist

Reputation: 2128

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.

Upvotes: 2

Related Questions