# workspace **Repository Path**: mingzhanghui/workspace ## Basic Information - **Project Name**: workspace - **Description**: docker开发环境 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-07-02 - **Last Updated**: 2021-07-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 1.访问项目 当前目录创建以.conf的配置文件 事例配置如下 ``` server { listen 80; server_name order.test; root /workspace/order/public; add_header X-Frame-Options "SAMEORIGIN"; add_header X-Content-Type-Options "nosniff"; index index.php; charset utf-8; location / { try_files $uri $uri/ /index.php?$query_string; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } error_page 404 /index.php; location ~ \.php$ { fastcgi_pass unix:/run/php/php7.4-fpm.sock; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; include fastcgi_params; } location ~ /\.(?!well-known).* { deny all; } } ``` 2、修改本地dns 127.0.0.1 命令: docker-compose up -d 首次启动 docker-compose start 启动 docker-compose down 删除 docker-compose stop 停止