docker/nginx/Demo/SingleNode/docker-compose.yml
2022-04-18 11:21:20 +08:00

23 lines
441 B
YAML

version: "3.7"
services:
nginx:
image: harbor.colben.cn/general/nginx
container_name: nginx
restart: "on-failure"
stop_grace_period: 5m
privileged: true
ports:
- 80:80
volumes:
- type: bind
source: ./nginx/html
target: /var/lib/nginx/html
- type: bind
source: ./nginx/http.d
target: /etc/nginx/http.d
- type: bind
source: ./nginx/log
target: /var/log/nginx