version: '3' services: app: build: context: . dockerfile: Dockerfile ports: - "8000:80" # 如果需要修改端口,可以在这里修改 volumes: - .:/var/www/html