docker-swarm-review

This commit is contained in:
2026-05-13 15:23:46 +08:00
parent da02c6a994
commit 5074e9cc42
128 changed files with 13062 additions and 0 deletions

View File

@@ -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