{"id":20692195,"url":"https://github.com/developerjosh/minecraft-docker","last_synced_at":"2026-03-17T04:37:01.192Z","repository":{"id":232130698,"uuid":"783532104","full_name":"DeveloperJosh/Minecraft-docker","owner":"DeveloperJosh","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-01T19:33:43.000Z","size":2528,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T16:37:11.592Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DeveloperJosh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-08T04:41:53.000Z","updated_at":"2024-05-01T19:33:46.000Z","dependencies_parsed_at":"2025-03-11T01:33:26.931Z","dependency_job_id":"be5eec96-b2ec-4d4d-97c9-6f2c66f8ff38","html_url":"https://github.com/DeveloperJosh/Minecraft-docker","commit_stats":null,"previous_names":["developerjosh/minecraft-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DeveloperJosh/Minecraft-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FMinecraft-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FMinecraft-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FMinecraft-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FMinecraft-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeveloperJosh","download_url":"https://codeload.github.com/DeveloperJosh/Minecraft-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FMinecraft-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30610155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-16T23:44:20.790Z","status":"online","status_checked_at":"2026-03-17T02:00:07.764Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T23:19:45.596Z","updated_at":"2026-03-17T04:37:01.177Z","avatar_url":"https://github.com/DeveloperJosh.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Prerequisites\n\n- Docker installed on your system. You can download and install Docker from [here](https://docs.docker.com/get-docker/).\n\n## Getting Started\n\n1. Clone or download this repository to your local machine.\n\n2. Navigate to the directory containing the Dockerfile.\n\n3. Build the Docker image using the following command:\n\n    ```bash\n    docker build -t minecraft-server .\n    ```\n\n4. Once the build is complete, you can run the Docker container with the following command:\n\n    ```bash\n    docker run -d -p 25565:25565 -p 25575:25575 --name minecraft-server minecraft-server\n    ```\n\n    This command will start the Minecraft server container in detached mode, exposing ports 25565 (Minecraft) and 25575 (RCON).\n\n5. Access your Minecraft server by connecting to `localhost:25565` from your Minecraft client.\n\n## Using Docker Compose\n\nAlternatively, you can use Docker Compose to manage your Minecraft server. Follow these steps to set it up:\n\n1. Create a `docker-compose.yml` file in the root directory of your project with the following content:\n\n    ```yaml\n    version: '3.8'\n\n    services:\n      minecraft-server:\n        build: .\n        ports:\n          - \"25565:25565\"  # Minecraft server port\n          - \"25575:25575\"  # RCON port\n        environment:\n          SERVER_TYPE: paper  # Specify the server type (paper, spigot)\n          SERVER_PORT: 25565  # Minecraft server port\n          RCON_HOST: localhost  # RCON host\n          RCON_PORT: 25575  # RCON port\n          RCON_PASS: password  # RCON password\n          MIN_MEMORY: 4G  # Minimum memory allocation for the server\n    ```\n\n2. Run the following command to start the Minecraft server using Docker Compose:\n\n    ```bash\n    docker-compose up -d\n    ```\n\n    This will start the Minecraft server container in detached mode, using the configuration specified in the `docker-compose.yml` file.\n\n## Sending Commands via RCON\n\nYou can send commands to the Minecraft server using RCON. By default, the RCON password is `password`. To send commands, follow these steps:\n\n1. Connect to your server using the following command:\n\n    ```bash\n     rcon-cli --password \"your password\"\n    ```\n\n## Editing Environment Variables\n\nYou can customize the server configuration by editing the environment variables in the Dockerfile or the `docker-compose.yml` file. Here are the available variables and their default values:\n\n- `SERVER_TYPE`: Type of Minecraft server (paper, spigot, velocity).\n- `SERVER_PORT`: Port on which the Minecraft server listens.\n- `MIN_MEMORY`: Minimum memory allocation for the Java Virtual Machine (JVM).\n- `RCON_HOST`: Hostname or IP address for RCON connections.\n- `RCON_PORT`: Port used for RCON connections.\n- `RCON_PASS`: Password for RCON authentication.\n\nMake sure to rebuild the Docker image or restart the Docker Compose service after editing the environment variables.\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperjosh%2Fminecraft-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloperjosh%2Fminecraft-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperjosh%2Fminecraft-docker/lists"}