R
R
Ruslan Galiev2017-01-04 11:03:48
Docker
Ruslan Galiev, 2017-01-04 11:03:48

How to properly prepare docker?

Hello
Faced the following problem when moving from one hoster to another. I had to redo everything. Therefore, I decided that the next time I move, I will use docker to create system images.
The application uses the following components: Debian + Apache + PostgreSQL + RoR + Elastic + ftpd. On one server, 3-4 web portals on Rails are running. Tell me how to use docker correctly when creating applications on RoR, what are the best practices for deployment?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
sim3x, 2017-01-04
@sim3x

Docker is one of the deployment automation options
In the case of "classic" hosting, it does not work or it works for everyone in their own way.
You need automation of deployment, backup and recovery

E
Evgeny Svirsky, 2017-01-04
@e_svirsky

As for me, it's better to make a separate docker-compose for each project.
The scenario is something like this:
Create configs for each image. This will allow you to raise the environment with one command.
Regarding the deployment (I know this only in theory) - I know that the docker has a docker server that is ready to accept containers for deployment. Those. feed him a config, he will raise the environment for you, update the code and everything else.
Something like this.

Y
Yuri S., 2017-01-05
@yucom

You can see an example of setting up docker containers here https://github.com/weazar/dora
And how to deploy using ansible here https://github.com/weazar/andora

L
lxfr, 2017-01-05
@lxfr

Use, as mentioned above, docker-compose for each individual project.
And in the future, use Docker Swarm to manage your projects.
In addition, through docker-compose YML files, you can describe the deployment of different environments: dev, production, test.
+ Keeping docker-compose files in GIT is convenient.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question