1
0
forked from EHV/sejeteralo
Files
sejeteralo/docker-compose.jetson.yml
T
2026-05-01 20:22:52 +02:00

48 lines
1.3 KiB
YAML

# docker-compose.jetson.yml
# Ports décalés (8001/3001) pour ne pas entrer en conflit
# avec les services existants sur le Jetson.
# Nginx fait le reverse proxy depuis sejeteraleau.nicolasboyer.com
services:
backend:
build:
context: .
dockerfile: docker/backend.Dockerfile
target: production
environment:
DATABASE_URL: sqlite+aiosqlite:////data/sejeteralo.db
SECRET_KEY: CHANGEZ-MOI-cle-longue-et-aleatoire-32-chars-min
DEBUG: "false"
CORS_ORIGINS: '["https://sejeteraleau.nicolasboyer.com"]'
ports:
- "127.0.0.1:8010:8000"
volumes:
- backend-data:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 30s
timeout: 5s
retries: 3
frontend:
build:
context: .
dockerfile: docker/frontend.Dockerfile
target: production
args:
# URL vue depuis le navigateur du visiteur
NUXT_PUBLIC_API_BASE: https://sejeteraleau.nicolasboyer.com/api/v1
environment:
NUXT_PUBLIC_API_BASE: https://sejeteraleau.nicolasboyer.com/api/v1
PORT: "3000"
ports:
- "127.0.0.1:3010:3000"
depends_on:
- backend
restart: unless-stopped
volumes:
backend-data: