39 lines
874 B
YAML
39 lines
874 B
YAML
version: "3.7"
|
|
|
|
services:
|
|
keepalived:
|
|
image: harbor.colben.cn/general/keepalived
|
|
container_name: keepalived
|
|
restart: "on-failure"
|
|
stop_grace_period: 1m
|
|
privileged: true
|
|
network_mode: host
|
|
volumes:
|
|
- type: bind
|
|
source: ./keepalived/conf
|
|
target: /etc/keepalived
|
|
- type: bind
|
|
source: ./keepalived/log
|
|
target: /var/log/keepalived
|
|
|
|
nginx:
|
|
image: harbor.colben.cn/general/nginx:1.20.2
|
|
container_name: nginx
|
|
restart: "on-failure"
|
|
stop_grace_period: 1m
|
|
network_mode: host
|
|
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/stream.d
|
|
target: /etc/nginx/stream.d
|
|
- type: bind
|
|
source: ./nginx/log
|
|
target: /var/log/nginx
|
|
|