services: backend: build: context: ./backend dockerfile: Dockerfile env_file: - ./backend/.env ports: - "8000:8000" volumes: - mt_traffic_data:/data restart: unless-stopped frontend: build: context: ./frontend dockerfile: Dockerfile environment: - NEXT_PUBLIC_API_BASE=http://localhost:8000 - NEXT_PUBLIC_WS_BASE=ws://localhost:8000 ports: - "3000:3000" depends_on: - backend restart: unless-stopped volumes: mt_traffic_data: