#tradewind:add nginx

This commit is contained in:
2021-06-07 15:12:15 +08:00
parent 43d957f78b
commit 4d7a5e6f52
6 changed files with 52 additions and 2 deletions

View File

@@ -1,13 +1,28 @@
version: "3"
services:
nginx:
build:
context: ./nginx/
dockerfile: dockerfile
ports:
- 80:80
networks:
- server
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/sources.list:/etc/apt/sources.list
- ${LOCAL_CODE_ROOT}:/var/www/http
- ./log/nginx:/var/log/nginx
container_name: nginx-server
restart: always
php7.4:
build:
context: ./php7.4/
dockerfile: dockerfile
volumes:
- ./php7.4/sources.list:/etc/apt/sources.list
- /var/www/http:/var/www/http
- ${LOCAL_CODE_ROOT}:/var/www/http
networks:
- server
container_name: php7.4