Skip to content

Commit

Permalink
提交
Browse files Browse the repository at this point in the history
  • Loading branch information
niuzheng1314520 committed Jun 14, 2022
1 parent 2890486 commit 1717cc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ docker build -t web:1.0 -f web.Dockerfile .
```
#### 运行容器
```text
docker run --name web -d -p 80:80 -v $PWD/code:/var/www/html -v $PWD/conf:/etc/nginx/conf.d -v $PWD/logs:/var/log web:1.0
docker run --name web -d -p 80:80 -v $PWD/code:/var/www/html -v $PWD/conf:/etc/nginx/conf.d -v $PWD/logs/php:/var/log -v $PWD/logs/nginx:/var/log web:1.0
```
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ services:
volumes:
- ./code:/var/www/html
- ./conf/nginx/:/etc/nginx/conf.d
- ./logs:/var/log
- ./logs/nginx:/var/log/nginx
- ./logs/php:/var/log/php
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:80" ]
interval: 30s
Expand Down

0 comments on commit 1717cc6

Please sign in to comment.