2025-05-13 18:50:30 +02:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
web:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
ports:
|
2025-05-13 19:02:08 +02:00
|
|
|
- "3800:3800" # Changed to port 3800 to match external Nginx config
|
2025-05-13 18:50:30 +02:00
|
|
|
environment:
|
|
|
|
|
- NODE_ENV=production
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
# Mount these as volumes to enable hot updating without rebuilding the container
|
|
|
|
|
volumes:
|
|
|
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
|
|
|
|
- ./.env:/usr/share/nginx/html/.env
|
|
|
|
|
|
|
|
|
|
# Optional service for the app.js backend script
|
|
|
|
|
# Uncomment and configure as needed
|
|
|
|
|
# backend:
|
|
|
|
|
# build:
|
|
|
|
|
# context: .
|
|
|
|
|
# dockerfile: Dockerfile.backend
|
|
|
|
|
# environment:
|
|
|
|
|
# - NODE_ENV=production
|
|
|
|
|
# - WREN_API_TOKEN=${WREN_API_TOKEN}
|
|
|
|
|
# restart: unless-stopped
|
|
|
|
|
# depends_on:
|
|
|
|
|
# - web
|