Skip to content

Commit

Permalink
update zentao
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaofeng1227 committed Nov 8, 2023
1 parent 49ea7a6 commit 18c1a7c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
23 changes: 6 additions & 17 deletions apps/zentao/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -54,7 +47,3 @@ networks:
volumes:
zentao:
mysql_data:

configs:
my_cmd:
file: ./cmd.sh
2 changes: 1 addition & 1 deletion apps/zentao/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"edition": [
{
"dist": "community",
"version": ["18.4", "latest"]
"version": ["18.8", "latest"]
}
],
"requirements": {
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 18c1a7c

Please sign in to comment.