Multi-stage Dockerfile (node:20 builder + php:8.2-fpm-alpine runtime), nginx serving frontend SPA + PHP-FPM backend at /lux-studio/, supervisord managing both processes. docker-compose.prod.yml on port 8085, .env.optical mounted read-only, uploads in a named volume. Apache include at deploy/apache-lux-studio.conf proxies /lux-studio/ → :8085. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
303 B
YAML
14 lines
303 B
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile
|
|
volumes:
|
|
- ./backend/.env.optical:/var/www/html/lux-studio/api/.env:ro
|
|
- uploads:/var/www/html/lux-studio/api/uploads
|
|
ports:
|
|
- "127.0.0.1:8085:80"
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
uploads:
|