services: frontend: build: context: frontend ports: - 80:80 volumes: - '.:/app' - '/app/node_modules' networks: - react-frontend depends_on: - backend links: - backend backend: build: backend restart: always ports: - 8000:8000 depends_on: - mongo environment: - ASPNETCORE_URLS=http://+:8000 networks: - react-backend - react-frontend mongo: restart: always image: mongo:4.2.0 volumes: - ./data:/data/db networks: - react-backend networks: react-backend: {} react-frontend: {}