Right now I can only do docker-compose up -d in the docker folder to run an instance of the container that is mapped to 42071. I want a way that I can run multiple instances of the docker container, each mapped to a different port with different data folders.
I know that you can do this with a regular dockerfile by specifying the name on the command line, but I'm not sure how to do it with docker-compose. It would be nice if I just had a wrapper script for it and didn't need to remember the container names all the time too.
Maybe we can write a script to :
- Make a new folder inside the
docker folder
- Copy the docker-compose.yml file
- Modify the docker-compose file with
sed to use a given name and port
- Start the container with
docker-compose up -d
That is pretty simple, but I think that it could become tough to maintain. There is probably a better way to do this that docker provides. I need to do some research first before committing to anything.
Right now I can only do
docker-compose up -din thedockerfolder to run an instance of the container that is mapped to42071. I want a way that I can run multiple instances of the docker container, each mapped to a different port with different data folders.I know that you can do this with a regular dockerfile by specifying the name on the command line, but I'm not sure how to do it with
docker-compose. It would be nice if I just had a wrapper script for it and didn't need to remember the container names all the time too.Maybe we can write a script to :
dockerfoldersedto use a given name and portdocker-compose up -dThat is pretty simple, but I think that it could become tough to maintain. There is probably a better way to do this that docker provides. I need to do some research first before committing to anything.