Preview link

This commit is contained in:
2025-09-01 14:37:31 +00:00
parent debbf07280
commit 021e0c7974
8 changed files with 45 additions and 4 deletions

2
docker/.env Normal file
View File

@ -0,0 +1,2 @@
PREVIEW_PORT=6565
WEBUI_PORT=5000

View File

@ -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=$!

View File

@ -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"