version: "3" services: db: build: context: backend/db ports: - 27017:27017 environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: example server: build: context: backend/server ports: - 5000:80 environment: MONGODB__Username: root MONGODB__Password: example MONGODB__Host: db MONGODB__Port: 27017 MONGODB__Database: todo env_file: - .env depends_on: - db client: build: context: client ports: - 3000:3000