From 18c1a7ce1f4f16246885ee21484d767fca27245c Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Wed, 8 Nov 2023 15:37:30 +0800 Subject: [PATCH] update zentao --- apps/zentao/docker-compose.yml | 23 ++++++----------------- apps/zentao/variables.json | 2 +- library.json | 2 +- 3 files changed, 8 insertions(+), 19 deletions(-) diff --git a/apps/zentao/docker-compose.yml b/apps/zentao/docker-compose.yml index ad6207161..22d0e2c46 100644 --- a/apps/zentao/docker-compose.yml +++ b/apps/zentao/docker-compose.yml @@ -10,25 +10,18 @@ services: ports: - 9001-9999:80 volumes: - - zentao:/www/zentaopms + - zentao:/data env_file: .env environment: # The belows vars is need, otherwise container error - zentao_DB_HOST: $APP_ID-db - zentao_DB_PASSWORD: $POWER_PASSWORD - MYSQL_USER: $APP_ID - MYSQL_PASSWORD: $POWER_PASSWORD - MYSQL_DB: $APP_ID - MYSQL_HOST: $APP_ID-db - links: - - mysql + ZT_MYSQL_HOST: $APP_ID-db + ZT_MYSQL_PORT: 3306 + ZT_MYSQL_USER: root + ZT_MYSQL_PASSWORD: $POWER_PASSWORD + ZT_MYSQL_DB: $APP_ID restart: unless-stopped - entrypoint: bash -c "cat /my_cmd > /cmd.sh && chmod +x /cmd.sh && /cmd.sh" - configs: - - source: my_cmd labels: com.docker.compose.w9_http.port: 80 - mysql: image: mysql:5.7 @@ -54,7 +47,3 @@ networks: volumes: zentao: mysql_data: - -configs: - my_cmd: - file: ./cmd.sh diff --git a/apps/zentao/variables.json b/apps/zentao/variables.json index 4038d646b..4800f8246 100644 --- a/apps/zentao/variables.json +++ b/apps/zentao/variables.json @@ -6,7 +6,7 @@ "edition": [ { "dist": "community", - "version": ["18.4", "latest"] + "version": ["18.8", "latest"] } ], "requirements": { diff --git a/library.json b/library.json index 1fe2b0a28..b1231729f 100644 --- a/library.json +++ b/library.json @@ -3,7 +3,7 @@ "Repository": "https://github.com/Websoft9/docker-library", "Update URI": "https://example.com/my-plugin/", "Description": "200 application template for you installation.", - "Version": "0.5.8-rc4", + "Version": "0.5.8", "Requires at most": "1.5.0", "Requires at least": "0.0.1", "Author": "Websoft9 Inc",