version: '3.8' services: user_service: env_file: ".env" build: context: ./user_service dockerfile: Dockerfile environment: - PORT=8000 ports: - "8000:8000" device_service: env_file: ".env" build: context: ./device_service dockerfile: Dockerfile environment: - PORT=8001 ports: - "8001:8001" nginx: image: nginx:latest volumes: - ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf ports: - "80:80" depends_on: - user_service - device_service