mirror of
https://github.com/AlexMacocian/Docker-Minecraft-Paper.git
synced 2026-07-15 15:19:32 +00:00
Expose 8123 for Dynmap
This commit is contained in:
@@ -34,6 +34,7 @@ RUN addgroup -S mcgroup && adduser -S mcuser -G mcgroup -s /bin/sh \
|
||||
WORKDIR /minecraft
|
||||
|
||||
EXPOSE 25565
|
||||
EXPOSE 8123
|
||||
|
||||
CMD /bin/sh -c ' \
|
||||
echo Fixing ownership of minecraft directory... && \
|
||||
|
||||
@@ -14,6 +14,7 @@ if ($container) {
|
||||
Write-Host "The container '$containerName' does not exist. Creating it..."
|
||||
docker create --name $containerName `
|
||||
-p 25565:25565 `
|
||||
-p 8123:8123 `
|
||||
-v "$(pwd)/plugins:/minecraft/plugins" `
|
||||
-v "$(pwd)/logs:/minecraft/logs" `
|
||||
--restart unless-stopped `
|
||||
|
||||
Reference in New Issue
Block a user