Skip to content

Need a way to make multiple instances of the Minecraft container that run on different ports with different names #1

Description

@BenjaFriend

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 :

  1. Make a new folder inside the docker folder
  2. Copy the docker-compose.yml file
  3. Modify the docker-compose file with sed to use a given name and port
  4. 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.

Metadata

Metadata

Assignees

Labels

taskSomething that needs doing!

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions