services: backend: container_name: backend build: context: ./backend dockerfile: Dockerfile working_dir: /app ports: - "5000:5000" volumes: - ./backend:/app frontend: container_name: frontend build: context: ./frontend dockerfile: Dockerfile ports: - "3000:3000" volumes: - ./frontend:/app - ./frontend:/node_modules db: container_name: database image: mongodb/mongodb-community-server ports: - "27017:27017" volumes: - ./database/data:/data/db