Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose.yml Fixes #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

bamartin125
Copy link

I followed the tutorial originally posted and soon after decided to do some testing on the result. I found that the data stored by minio was not persistent across restarts of the service. I ended up finding a bug in the compose file regarding the minio storage path.

I started to also question how the docker-compose.yml file could be simplified. I found that I could remove the app directory mounts because the necessary files had already been copied into the docker images.

I began experimenting with docker stack which takes some slightly different syntax regarding the restart policy as well as not allowing the build key. I decided to create a docker-stack.yml file for myself and wanted to give back to the tutorial if it indeed adds benefit.

The docker volume in docker-compose is being mounted at /data
rather than /export. Without changing this, any data stored by
minio at runtime is lost since it is not persistently stored in a
volume.
The /app directory has already been copied into the docker image.
There is no reason to mount it again at runtime via a volume.
The worker-minio containers depend on the minio service starting
first.
The added text in the README.md file helps to differentiate the
uses of the docker-compose.yml and docker-stack.yml files as well
as explains a little on how to manage the example service.
This new file allows the example service to be started on a docker
swarm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant