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?
Docker Compose is a tool for defining and running multi-container Docker applications.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With