- Add deploy-host.sh script for webhook-triggered docker redeploy - Mark deploy-host.sh executable in .gitignore / git config - Update docker-compose.yml and nginx.conf for auto-pull setup - Fix vite.config.js and admin router for deployment environment - Fix NVS generator CRC seed to match ESP-IDF esp_rom_crc32_le Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
38 lines
1020 B
YAML
38 lines
1020 B
YAML
services:
|
|
backend:
|
|
build: ./backend
|
|
container_name: bellsystems-backend
|
|
env_file: .env
|
|
volumes:
|
|
- ./backend:/app
|
|
# Persistent data - lives outside the container
|
|
- ./data/mqtt_data.db:/app/mqtt_data.db
|
|
- ./data/built_melodies:/app/storage/built_melodies
|
|
- ./data/firmware:/app/storage/firmware
|
|
- ./data/firebase-service-account.json:/app/firebase-service-account.json:ro
|
|
# Auto-deploy: project root so container can write the trigger file
|
|
- /home/bellsystems/bellsystems-cp:/home/bellsystems/bellsystems-cp
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on: []
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
container_name: bellsystems-frontend
|
|
volumes:
|
|
- ./frontend:/app
|
|
- /app/node_modules
|
|
ports:
|
|
- "5173:5173"
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
container_name: bellsystems-nginx
|
|
ports:
|
|
- "${NGINX_PORT:-80}:80"
|
|
volumes:
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
depends_on:
|
|
- backend
|
|
- frontend
|