docker-swarm-review
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
nginx-review:
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- target: 80
|
||||
published: 80
|
||||
protocol: tcp
|
||||
mode: host
|
||||
- target: 443
|
||||
published: 443
|
||||
protocol: tcp
|
||||
mode: host
|
||||
- target: 18888
|
||||
published: 18888
|
||||
protocol: tcp
|
||||
mode: host
|
||||
- target: 18889
|
||||
published: 18889
|
||||
protocol: tcp
|
||||
mode: host
|
||||
- target: 1180
|
||||
published: 1180
|
||||
protocol: tcp
|
||||
mode: host
|
||||
- target: 8888
|
||||
published: 8888
|
||||
protocol: tcp
|
||||
mode: host
|
||||
- target: 38888
|
||||
published: 38888
|
||||
protocol: tcp
|
||||
mode: host
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
volumes:
|
||||
- /data/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- /data/nginx/sites:/etc/nginx/sites:ro
|
||||
- /data/nginx/ssl.sino_assist.conf:/etc/nginx/ssl.sino_assist.conf:ro
|
||||
- /data/nginx/ssl.conf:/etc/nginx/ssl.conf:ro
|
||||
- /data/nginx/ssl:/etc/nginx/ssl:ro
|
||||
- /opt/logs/nginx:/var/log/nginx
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == ZD-BAK-APP2
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
update_config:
|
||||
parallelism: 1
|
||||
delay: 10s
|
||||
networks:
|
||||
- review
|
||||
|
||||
networks:
|
||||
review:
|
||||
external: true
|
||||
Reference in New Issue
Block a user