add docker and docker compose files

This commit is contained in:
2026-02-02 17:35:01 +01:00
parent 753d9e1e64
commit fcd99dcc09
6 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
services:
mc-proxy-controller:
build:
context: .
dockerfile: Dockerfile
container_name: mc-proxy-controller
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- "25565:25565"
- "8081:8081"
environment:
LISTEN_ADDR: "0.0.0.0:25565"
SERVER_ADDR: "mc-container:25565"
MOTD_SERVER_ADDR: "0.0.0.0:8081"
RCON_ADDR: "mc-container:25575"
RCON_PASSWORD: "${RCON_PASSWORD:-minecraft}"
IDLE_TIMEOUT_SECS: "${IDLE_TIMEOUT_SECS:-900}"
POLLING_INTERVAL_MILLIS: "${POLLING_INTERVAL_MILLIS:-10000}"
CONTAINER_NAME: "mc-container"
networks:
- mc-container-network
networks:
mc-container-network:
external: true
name: mc-container_default