version: '3.8' services: client: build: context: ./client dockerfile: Dockerfile ports: - "3000:3000" environment: - REACT_APP_API_URL=http://localhost:5000/api depends_on: - server volumes: - ./client:/app - /app/node_modules server: build: context: ./server dockerfile: Dockerfile ports: - "5000:5000" environment: - NODE_ENV=development - PORT=5000 volumes: - ./server:/app - /app/node_modules env_file: - ./server/.env