services: backend: build: context: ./backend dockerfile: Dockerfile ports: - "8000:8000" volumes: - stock_data:/app/stock_tracker.db restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/docs"] interval: 30s timeout: 10s retries: 3 frontend: build: context: ./frontend dockerfile: Dockerfile ports: - "80:80" depends_on: backend: condition: service_healthy restart: unless-stopped volumes: stock_data: