version: '3.8' services: codeshield: build: . ports: - "8000:8000" environment: - DATABASE_URL=sqlite+aiosqlite:///./data/codeshield.db - DEBUG=false volumes: - codeshield-data:/app/data restart: unless-stopped healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/v1/health')"] interval: 30s timeout: 5s retries: 3 volumes: codeshield-data: