#tradewind:add nginx
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user