# 本地开发 nginx 配置 # 用法: docker compose -f docker-nginx/dev-nginx.yml up -d # 前提: hosts 文件已添加 127.0.0.1 book.rrbrr.com services: nginx: image: nginx:latest container_name: nginx-local-dev ports: - "80:80" volumes: - ./dev-nginx.conf:/etc/nginx/conf.d/default.conf:ro extra_hosts: - "host.docker.internal:host-gateway" restart: unless-stopped