Preview link
This commit is contained in:
2
docker/.env
Normal file
2
docker/.env
Normal file
@ -0,0 +1,2 @@
|
||||
PREVIEW_PORT=6565
|
||||
WEBUI_PORT=5000
|
@ -43,7 +43,9 @@ start_server() {
|
||||
cat /tmp/build_logs_fifo >&2 &
|
||||
cat /tmp/build_logs_fifo2 >&2 &
|
||||
|
||||
PREVIEW_PORT="${PREVIEW_PORT:-3000}"
|
||||
echo "Starting preview HTTP server on port 3000..."
|
||||
echo "Preview host port is set to: ${PREVIEW_PORT}"
|
||||
python3 -u -m http.server 3000 -d /app/output &
|
||||
SERVER_PID=$!
|
||||
|
||||
|
@ -2,10 +2,15 @@ services:
|
||||
lumeex:
|
||||
container_name: lmx
|
||||
build: ..
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- PREVIEW_PORT=${PREVIEW_PORT:-3000} # port for preview server - set it in .env file
|
||||
- WEBUI_PORT=${WEBUI_PORT:-5000} # port for webui server - set it in .env file
|
||||
volumes:
|
||||
- ../config:/app/config # mount config directory
|
||||
- ../output:/app/output # mount output directory
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "5000:5000"
|
||||
- "${PREVIEW_PORT:-3000}:3000"
|
||||
- "${WEBUI_PORT:-5000}:5000"
|
||||
|
Reference in New Issue
Block a user