Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the simplest way to share a multi-container app on docker hub?

I have a fully dockerised app with multiple services: frontend, backend, user-service, multiple databases etc...

I orchestrate everything using a docker-compose.yml file. I am now trying to share this app with someone who has no CS/coding knowledge so that all they will need to do is pull this app from docker hub and enter the command docker-compose up or something similar.

I'm looking into the best way to do this and I'm getting very lost with the docker lexicon of swarms, bundles, stacks, services etc...

What is the best practice for sharing a collection of images started with a docker-compose.yml file?

like image 767
Ludo Avatar asked May 02 '18 14:05

Ludo


People also ask

What tool can be used to deploy multiple containers at once?

Docker Compose is a tool for defining and running multi-container Docker applications.


1 Answers

Push the images to Dockerhub (possibly into a private repository).

Give the docker-compose.yml file to whoever needs it (along with an associated .env if needed).

Get them to log in to docker hub (i.e. they'll need a Dockerhub user and access to your images if they are in a private repository)

Run docker-compose up -d

That should be all you need to do, docker-compose should pull the images down and Bob's your uncle.

like image 167
PaulNUK Avatar answered Nov 15 '22 10:11

PaulNUK