version: '3.8' services: backend: build: context: ./backend dockerfile: Dockerfile container_name: news-engine-console-backend ports: - "8101:8101" environment: - MONGODB_URL=mongodb://host.docker.internal:27017 - DB_NAME=news_engine_console_db - JWT_SECRET=your-secret-key-change-this-in-production - JWT_ALGORITHM=HS256 - ACCESS_TOKEN_EXPIRE_MINUTES=30 - REFRESH_TOKEN_EXPIRE_DAYS=7 volumes: - ./backend:/app command: python main.py restart: unless-stopped networks: - news-engine-console-network frontend: build: context: ./frontend dockerfile: Dockerfile.dev container_name: news-engine-console-frontend ports: - "3000:3000" environment: - VITE_API_URL=http://localhost:8101 volumes: - ./frontend:/app - /app/node_modules command: npm run dev depends_on: - backend restart: unless-stopped networks: - news-engine-console-network networks: news-engine-console-network: driver: bridge