<message>Update the _set_golden_from_path function to improve the handling of existing golden image files. Replace the existing unlink logic with a more robust method that safely removes files or broken symlinks using the missing_ok parameter. This change enhances the reliability of the backup upload process by ensuring that stale references are properly cleared before setting a new golden image path.
35 lines
877 B
YAML
35 lines
877 B
YAML
# GNSS Guard Server - Development Docker Compose
|
|
# No nginx, no SSL - direct access to FastAPI on port 8000
|
|
#
|
|
# Usage:
|
|
# cp env.example .env.dev
|
|
# # Edit .env.dev (can use SQLite for dev: sqlite:///./data/gnss_guard.db)
|
|
# docker compose -f docker-compose.dev.yml up -d
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
gnss-server:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: gnss-guard-server-dev
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env.dev
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
# Mount source code for live reload (development only)
|
|
- .:/app
|
|
environment:
|
|
- GNSS_SERVER_DEBUG=true
|
|
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/auth/check"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|