add docker and docker compose files
This commit is contained in:
37
docker-compose-example.yml
Normal file
37
docker-compose-example.yml
Normal 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
|
||||
Reference in New Issue
Block a user