expose port 8989 for use outside docker.

This commit is contained in:
Bob
2024-07-10 21:42:49 -07:00
parent 38f36179c3
commit c5b4c3242a
2 changed files with 4 additions and 2 deletions

View File

@@ -2,10 +2,10 @@ FROM node:lts-slim as base
RUN npm i holesail -g
#ENV PORT 25565
ENV MODE client
ENV HOST 0.0.0.0
#ENV CONNECTOR=$CONNECTOR
EXPOSE 8989
ENTRYPOINT sh -c ' \
if [ "$MODE" = "server" ]; then \

View File

@@ -14,6 +14,8 @@ services:
container_name: holesail
restart: unless-stopped
build: .
ports:
- 25565:8989
environment:
MODE: server # defaults to client
PORT: 25565