diff --git a/docker-compose.yml b/docker-compose.yml index 7f25e03..9c38f6c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: image: ${REGISTRY}/tenant-service:${IMAGE_TAG} profiles: ["base"] ports: - - "127.0.0.1:11224:9001" + - "127.0.0.1:${SVC_PORT_TENANT:-11224}:9001" env_file: - ./config/xuqm.env # 业务配置:运行模式、域名、功能开关 - ./config/secrets.env # 敏感配置:密码、Token @@ -48,7 +48,7 @@ services: image: ${REGISTRY}/file-service:${IMAGE_TAG} profiles: ["base"] ports: - - "127.0.0.1:11225:8086" + - "127.0.0.1:${SVC_PORT_FILE:-11225}:8086" env_file: - ./config/xuqm.env - ./config/secrets.env @@ -73,7 +73,7 @@ services: image: ${REGISTRY}/tenant-web:${IMAGE_TAG} profiles: ["base"] ports: - - "127.0.0.1:11226:80" + - "127.0.0.1:${SVC_PORT_WEB:-11226}:80" restart: unless-stopped # --------------------------------------------------------------------------- @@ -106,7 +106,7 @@ services: image: ${REGISTRY}/im-service:${IMAGE_TAG} profiles: ["im"] ports: - - "127.0.0.1:11228:8082" + - "127.0.0.1:${SVC_PORT_IM:-11228}:8082" env_file: - ./config/xuqm.env - ./config/secrets.env @@ -129,7 +129,7 @@ services: image: ${REGISTRY}/push-service:${IMAGE_TAG} profiles: ["push"] ports: - - "127.0.0.1:11229:8083" + - "127.0.0.1:${SVC_PORT_PUSH:-11229}:8083" env_file: - ./config/xuqm.env - ./config/secrets.env @@ -148,7 +148,7 @@ services: image: ${REGISTRY}/update-service:${IMAGE_TAG} profiles: ["update"] ports: - - "127.0.0.1:11230:8084" + - "127.0.0.1:${SVC_PORT_UPDATE:-11230}:8084" env_file: - ./config/xuqm.env - ./config/secrets.env @@ -172,7 +172,7 @@ services: image: ${REGISTRY}/license-service:${IMAGE_TAG} profiles: ["license"] ports: - - "127.0.0.1:11231:8085" + - "127.0.0.1:${SVC_PORT_LICENSE:-11231}:8085" env_file: - ./config/xuqm.env - ./config/secrets.env