This commit is contained in:
marsal wang
2023-07-26 10:07:34 +08:00
parent f884cb1020
commit 1e5a703cce
5384 changed files with 618283 additions and 4002 deletions

View File

@ -0,0 +1,4 @@
# crm1环境下 部署nginx
env $(cat ./env_crm1 | xargs) envsubst < ./docker-compose.yml | docker stack deploy --compose-file - crm1_nginx

View File

@ -0,0 +1,26 @@
version: '3.8'
networks:
default:
name: ${NAMESPACE}
external: true
services:
server:
image: 'docker.io/bitnami/nginx:1.24'
ports:
- '${NODE_PORT}:8080'
environment:
- TZ=Asia/Shanghai
configs:
- source: custome_config
target: /opt/bitnami/nginx/conf/server_blocks/crm1.conf
deploy:
update_config:
order: start-first
placement:
constraints:
- node.labels.${NAMESPACE}_nginx==1
configs:
custome_config:
external: true
name: ${CUSTOME_CONFIG}

View File

@ -0,0 +1,3 @@
NAMESPACE=crm1
NODE_PORT=8080
CUSTOME_CONFIG=crm1_nginx_config