# Environnement de développement. La production (nginx, HTTPS) sera ajoutée au lot 5. services: web: build: context: backend args: UV_SYNC_ARGS: "" command: python manage.py runserver 0.0.0.0:8000 env_file: .env volumes: - ./backend:/app ports: - "8000:8000" depends_on: db: condition: service_healthy db: image: postgres:17 environment: POSTGRES_DB: prism POSTGRES_USER: prism POSTGRES_PASSWORD: prism volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U prism -d prism"] interval: 5s retries: 10 mailpit: image: axllent/mailpit environment: # Accepte n'importe quel identifiant SMTP, sans TLS (développement uniquement). MP_SMTP_AUTH_ACCEPT_ANY: 1 MP_SMTP_AUTH_ALLOW_INSECURE: 1 ports: - "8025:8025" volumes: pgdata: