Skip to content

Provides a web based "Minecraft Server as a Service" (MCaaS?) to deploy Minecraft server containers on any Docker Swarm cluster or standalone Engine instance.

License

Notifications You must be signed in to change notification settings

moorkop/mccy-engine

Repository files navigation

Minecraft Container Yard

Join the chat at https://gitter.im/moorkop Circle CI codecov.io

Provides a web based "Minecraft Server as a Service" (MCaaS?) to deploy Minecraft server containers on any Docker Swarm cluster or standalone Engine instance.

Building

This is a Spring Boot based application, so it can be run at development time using:

./mvnw -Drun.arguments=...see below... spring-boot:run

or packaged using

./mvnw package

On Windows use the mvnw.bat instead or on any platform bring your own copy of Maven 3.x.

Building with Docker

If using a TLS authenticated Swarm/Daemon, copy the certificates directory into this project's space as a directory called certs. If using an insecure connection, just create an empty certs directory.

With that run

docker build -t mccy .

Accessing

By default, the application serves up at port 8080, such as

http://localhost:8080

and the user is "mccy". The password is output in the startup logs or you can pin it down by passing --security.user.password.

Running

There are several options available to configure, but the only required one is mccy.docker-host-uri. When running the packaged jar, it is passed as

java -jar target/mccy-swarm-*.jar --mccy.docker-host-uri=...

where you provide a http: for insecure Docker access or https: for secure/authenticated.

In the case of authenticated Docker connections, you will need to point to a directory with the appropriate certificates using mccy.docker-cert-path. For example, the directory you download from your Carina Cluster is exactly what you'll need.

Running with Docker

After following the steps above in Building with Docker, start a MCCY container using

docker run -d --name mccy -p 8080:8080 mccy --mccy.docker-host-uri=...

where the last part is the same command-line options described above.

Contributing

Please do! We are a very friendly group of developers and we would love to hear from you. If you have an idea, or want to start on a project, come by Gitter and let us know. We might have some extra info to help you before you get started and we want to help your pull request succeed.

All of the extra details can be found at the wiki.

About

Provides a web based "Minecraft Server as a Service" (MCaaS?) to deploy Minecraft server containers on any Docker Swarm cluster or standalone Engine instance.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •