version: "3.9" services: app: build: . nginx: image: nginx volumes: - ./nginx.conf:/etc/nginx/conf.d/default.conf ports: - "8080:80" depends_on: - app