From b7dcf1f110ed2a2ac3a251e446b8c9981500ecec Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Fri, 1 Nov 2024 21:54:14 +0800 Subject: [PATCH] update --- .env | 1 + docker-compose.yml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .env create mode 100644 docker-compose.yml diff --git a/.env b/.env new file mode 100644 index 0000000..288a862 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +MC_PATH=/root/mc \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e3dda2c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,22 @@ +services: + mc_web: + image: githubyumao/mcsmanager-web:latest + ports: + - "23333:23333" + volumes: + - /etc/localtime:/etc/localtime:ro + - $MC_PATH/web/data:/opt/mcsmanager/web/data + - $MC_PATH/web/logs:/opt/mcsmanager/web/logs + + mc_daemon: + image: githubyumao/mcsmanager-daemon:latest + restart: unless-stopped + ports: + - "24444:24444" + environment: + - MCSM_DOCKER_WORKSPACE_PATH=$MC_PATH/daemon/data/InstanceData + volumes: + - /etc/localtime:/etc/localtime:ro + - $MC_PATH/daemon/data:/opt/mcsmanager/daemon/data + - $MC_PATH/daemon/logs:/opt/mcsmanager/daemon/logs + - /var/run/docker.sock:/var/run/docker.sock