version: "3" services: db: restart: always build: context: backend/db ports: - 27017:27017 volumes: - './data/db:/data/db' env_file: - .env server: restart: always build: context: backend/server ports: - 12009:80 env_file: - .env environment: MONGODB__Host: db MONGODB__Port: 27017 MONGODB__Database: todo depends_on: - db client: restart: always build: context: client ports: - 12008:3000