services: db: image: postgres:16-alpine environment: POSTGRES_DB: litehis POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres ports: - '5432:5432' volumes: - litehis_pgdata:/var/lib/postgresql/data healthcheck: test: ['CMD-SHELL', 'pg_isready -U postgres -d litehis'] interval: 5s timeout: 5s retries: 12 api: build: ./backend environment: DATABASE_URL: postgresql+psycopg://postgres:postgres@db:5432/litehis JWT_SECRET_KEY: litehis-dev-secret ACCESS_TOKEN_EXPIRE_MINUTES: 480 CORS_ORIGINS: http://localhost,http://localhost:5173 depends_on: db: condition: service_healthy ports: - '8000:8000' web: build: ./frontend depends_on: - api ports: - '80:80' volumes: litehis_pgdata: