23 lines
448 B
YAML
23 lines
448 B
YAML
version: "3.7"
|
|
|
|
services:
|
|
nginx:
|
|
image: harbor.colben.cn/general/nginx:1.20.2
|
|
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
|
|
|