add client mode example. fix expose port.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM node:lts-slim as base
|
FROM node:lts-slim AS base
|
||||||
|
|
||||||
RUN npm i holesail -g
|
RUN npm i holesail -g
|
||||||
|
|
||||||
@@ -6,7 +6,7 @@ ENV MODE client
|
|||||||
ENV HOST 0.0.0.0
|
ENV HOST 0.0.0.0
|
||||||
ENV PORT 8989
|
ENV PORT 8989
|
||||||
|
|
||||||
EXPOSE $PORT
|
EXPOSE 8989
|
||||||
|
|
||||||
ENTRYPOINT sh -c ' \
|
ENTRYPOINT sh -c ' \
|
||||||
if [ "$MODE" = "server" ]; then \
|
if [ "$MODE" = "server" ]; then \
|
||||||
|
21
README.md
21
README.md
@@ -19,8 +19,6 @@ services:
|
|||||||
container_name: holesail
|
container_name: holesail
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
build: .
|
build: .
|
||||||
ports:
|
|
||||||
- 25565:25565
|
|
||||||
environment:
|
environment:
|
||||||
MODE: server # defaults to client
|
MODE: server # defaults to client
|
||||||
PORT: 25565
|
PORT: 25565
|
||||||
@@ -51,3 +49,22 @@ networks:
|
|||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Client mode is untested!
|
||||||
|
|
||||||
|
```
|
||||||
|
services:
|
||||||
|
holesail:
|
||||||
|
container_name: holesail
|
||||||
|
restart: unless-stopped
|
||||||
|
network_mode: "host" # host mode is required
|
||||||
|
build: .
|
||||||
|
environment:
|
||||||
|
MODE: client # defaults to client
|
||||||
|
PORT: 8989
|
||||||
|
HOST: 0.0.0.0 # defaults to 0.0.0.0
|
||||||
|
CONNECTOR: very-super-secret # leave this blank to generate a random secret.
|
||||||
|
```
|
||||||
|
|
||||||
|
"host" network mode only works with linux. Windows and Mac are incompatible.
|
||||||
|
Reference in New Issue
Block a user