version: '3.8' services: backend: build: context: ./backend dockerfile: Dockerfile container_name: family-hub-backend ports: - "8001:8000" environment: - DATABASE_URL=sqlite:///./family_hub.db - SECRET_KEY=${SECRET_KEY:-your-secret-key-change-in-production} - DEBUG=True volumes: - ./backend:/app - family-hub-data:/app/data restart: unless-stopped command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload networks: - family-hub-network frontend: build: context: ./frontend dockerfile: Dockerfile container_name: family-hub-frontend ports: - "5173:5173" volumes: - ./frontend:/app - /app/node_modules environment: - VITE_API_URL=http://localhost:8001 depends_on: - backend restart: unless-stopped command: npm run dev -- --host 0.0.0.0 networks: - family-hub-network volumes: family-hub-data: driver: local networks: family-hub-network: driver: bridge