Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaofeng1227 authored Dec 31, 2023
1 parent 1401dd9 commit 140c255
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 42 deletions.
7 changes: 3 additions & 4 deletions apps/vault/.env
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# This image have no latest
W9_VERSION=1.13.3
W9_ID=vault

W9_DIST=community
W9_REPO=vault
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
W9_ID=vault
W9_HTTP_PORT=8200
W9_HTTP_PORT_SET=9001

W9_URL=appname.example.com
W9_NETWORK=websoft9
W9_DIST=community
#### --------------------------------------------------------------------------------------- ####
16 changes: 8 additions & 8 deletions apps/vtiger/.env
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
W9_POWER_PASSWORD=EGProfkuyL3ogd

# tag:latest image is not newest image, pushed a issue to author yet
W9_VERSION=7.4.0
W9_ID=vtiger

W9_REPO=websoft9dev/vtiger
W9_DIST=community

W9_POWER_PASSWORD=EGProfkuyL3ogd
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
W9_ID=vtiger
W9_HTTP_PORT=80
W9_HTTP_PORT_SET=9001

W9_NETWORK=websoft9
W9_URL_REPLACE=false
W9_URL=appname.example.com
W9_DIST=community
W9_LOGIN_USER=admin
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
W9_DB_EXPOSE="mysql"
W9_DB_VERSION="5.6"
W9_NETWORK=websoft9
#### --------------------------------------------------------------------------------------- ####

VT_ADMIN_USER=$W9_LOGIN_USER
Expand Down
13 changes: 3 additions & 10 deletions apps/vtiger/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
- MYSQL_ROOT_PASSWORD=${W9_POWER_PASSWORD}
- MYSQL_USER=${W9_ID}
- MYSQL_PASSWORD=${W9_POWER_PASSWORD}
- VTIGER_DB_HOST=mysql
- VTIGER_DB_HOST=${W9_ID}-mysql
- VTIGER_DB_USER=${W9_ID}
- VTIGER_DB_DATABASE=${W9_ID}
- VTIGER_DB_PASSWORD=${W9_POWER_PASSWORD}
Expand All @@ -25,12 +25,9 @@ services:
- ./src/php_exra.ini:/usr/local/etc/php/conf.d/php_exra.ini
depends_on:
- mysql
command: bash -c "cat /my_cmd > /mycmd.sh && chmod +x /mycmd.sh && /mycmd.sh"
configs:
- source: my_cmd

mysql:
image: mysql:5.6
image: mysql:$W9_DB_VERSION
container_name: ${W9_ID}-mysql
restart: unless-stopped
environment:
Expand All @@ -41,7 +38,6 @@ services:
command: --character-set-server=utf8 --collation-server=utf8_general_ci --sql_mode=NO_ENGINE_SUBSTITUTION --local_infile=ON
volumes:
- mysql:/var/lib/mysql
env_file: .env

volumes:
mysql:
Expand All @@ -50,7 +46,4 @@ volumes:
networks:
default:
name: ${W9_NETWORK}
external: true
configs:
my_cmd:
file: ./cmd.sh
external: true
11 changes: 4 additions & 7 deletions apps/webmin/.env
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
W9_POWER_PASSWORD=uQ8E1wVTzG8SOk3!
W9_VERSION=latest
W9_ID=webmin
W9_DIST=community
W9_REPO=websoft9dev/webmin
W9_POWER_PASSWORD=uQ8E1wVTzG8SOk3!
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
W9_ID=webmin
W9_HTTP_PORT=10000
W9_HTTP_PORT_SET=10000

W9_NETWORK=websoft9

W9_LOGIN_USER=root
W9_URL_REPLACE=false
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
W9_URL=appname.example.com
W9_DIST=community
W9_NETWORK=websoft9
#### --------------------------------------------------------------------------------------- ####
2 changes: 1 addition & 1 deletion apps/webmin/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
environment:
- WEBMIN_PASSWORD=${W9_LOGIN_PASSWORD}
ports:
- '$W9_HTTP_PORT_SET:$W9_HTTP_PORT'
- $W9_HTTP_PORT_SET:10000
restart: unless-stopped

networks:
Expand Down
12 changes: 6 additions & 6 deletions apps/zabbix/.env
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
W9_POWER_PASSWORD=uQ8E1wVTzG8SOk3!
W9_VERSION=6.2
W9_ID=zabbix

W9_REPO=zabbix/zabbix-web-apache-mysql
W9_DIST=community
W9_POWER_PASSWORD=uQ8E1wVTzG8SOk3!

#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
W9_ID=zabbix
W9_HTTP_PORT=8080
W9_HTTP_PORT_SET=9001

W9_NETWORK=websoft9
W9_LOGIN_USER=Admin
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
W9_URL=appname.example.com
W9_DIST=community
W9_DB_EXPOSE="mysql"
W9_DB_VERSION="8.0"
W9_NETWORK=websoft9
#### --------------------------------------------------------------------------------------- ####
6 changes: 3 additions & 3 deletions apps/zabbix/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ services:

zabbix-web-apache-mysql:
image: ${W9_REPO}:ubuntu-${W9_VERSION}-latest
container_name: ${W9_ID}-web
container_name: ${W9_ID}
restart: unless-stopped
ports:
- "${W9_HTTP_PORT_SET}:${W9_HTTP_PORT}"
- ${W9_HTTP_PORT_SET}:8080
volumes:
- /etc/localtime:/etc/localtime:ro
- apache2:/etc/ssl/apache2:ro
Expand Down Expand Up @@ -189,7 +189,7 @@ services:
env_file: .env

mysql:
image: mysql:8.0
image: mysql:$W9_DB_VERSION
container_name: ${W9_ID}-mysql
restart: unless-stopped
command:
Expand Down
2 changes: 1 addition & 1 deletion apps/zammad/.env
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ W9_HTTP_PORT=8080
W9_LOGIN_USER=admin
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
W9_DB_EXPOSE="postgresql"
W9_DB_VERSION=""
W9_DB_VERSION="15.3"
W9_URL=""
W9_NETWORK=websoft9
#### --------------------------------------------------------------------------------------- ####
Expand Down
4 changes: 2 additions & 2 deletions apps/zammad/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ services:
container_name: $W9_ID
command: ["zammad-nginx"]
ports:
- $W9_HTTP_PORT_SET:$W9_HTTP_PORT
- $W9_HTTP_PORT_SET:8080
expose:
- "8080"
depends_on:
Expand All @@ -110,7 +110,7 @@ services:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASS}
image: postgres:${POSTGRES_VERSION}
image: postgres:${W9_DB_VERSION}
restart: ${RESTART}
volumes:
- postgresql-data:/var/lib/postgresql/data
Expand Down

0 comments on commit 140c255

Please sign in to comment.