updated to reflex filemanager use case.

This commit is contained in:
Bob
2024-07-12 18:15:04 -07:00
parent 9875f9b92c
commit 1799d1bc5f

View File

@@ -20,10 +20,10 @@ services:
restart: unless-stopped restart: unless-stopped
build: . build: .
environment: environment:
MODE: server # defaults to client MODE: server # defaults to client
PORT: 25565 PORT: 25565
HOST: minecraft # defaults to 0.0.0.0 HOST: minecraft # defaults to 0.0.0.0
CONNECTOR: very-super-secret # leave this blank to generate a random secret. CONNECTOR: very-super-secret # leave this blank to generate a random secret.
networks: networks:
- proxy - proxy
@@ -38,7 +38,6 @@ services:
environment: environment:
EULA: "TRUE" EULA: "TRUE"
volumes: volumes:
# attach the relative directory 'data' to the container's /data path
- ./data:/data - ./data:/data
depends_on: depends_on:
- holesail - holesail
@@ -58,13 +57,32 @@ services:
holesail: holesail:
container_name: holesail container_name: holesail
restart: unless-stopped restart: unless-stopped
network_mode: "host" # host mode is required network_mode: "host" # host mode is required
build: . build: .
environment: environment:
MODE: client # defaults to client MODE: client # defaults to client
PORT: 8989 PORT: 8989
HOST: 0.0.0.0 # defaults to 0.0.0.0 HOST: 0.0.0.0 # defaults to 0.0.0.0
CONNECTOR: very-super-secret # leave this blank to generate a random secret. CONNECTOR: very-super-secret # leave this blank to generate a random secret.
``` ```
"host" network mode only works with linux. Windows and Mac are incompatible. "host" network mode only works with linux. Windows and Mac are incompatible.
```
services:
holesail:
container_name: holesail
restart: unless-stopped
build: .
environment:
MODE: filemanager # defaults to client
PORT: 8989
HOST: 0.0.0.0 # defaults to 0.0.0.0
PUBLIC: true # Defaults to true
ROLE: user # admin for write priveleges.
USERNAME: admin
PASSWORD: admin
CONNECTOR: very-super-secret # leave this blank to generate a random secret.
volumes:
- <host dir>:/data # Change <host dir> to the directory you wish to share.
```