Skip to content

Commit

Permalink
Merge pull request #421 from Websoft9/ruixian_1105
Browse files Browse the repository at this point in the history
1105
  • Loading branch information
qiaofeng1227 authored Nov 29, 2023
2 parents 7d53783 + 15554d0 commit 4d85536
Show file tree
Hide file tree
Showing 15 changed files with 72 additions and 93 deletions.
14 changes: 9 additions & 5 deletions apps/mongodb/.env
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# versions for you 4.4
W9_POWER_PASSWO=uQ8E1wVTzG8SOk3!
W9_VERSION=6.0
W9_NAME=mongodb
W9_USER=root
W9_PASSWORD=$W9_POWER_PASSWO
W9_ID=mongodb
W9_REPO=mongo
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
W9_DB_PORT=27017
W9_DB_PORT_SET=27017
W9_URL_REPLACE=false
W9_URL=appname.example.com
W9_NETWORK=websoft9
W9_USER=root
W9_COMMAND="--wiredTigerCacheSizeGB 2 --config /etc/mongod.conf"
W9_URL_REPLACE=false
W9_URL=appname.example.com
W9_PASSWORD=$W9_POWER_PASSWO
#### --------------------------------------------------------------------------------------- ####
6 changes: 3 additions & 3 deletions apps/mongodb/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ version: '3.8'

services:
mongo:
image: mongo:${W9_VERSION}
image: ${W9_REPO}:${W9_VERSION}
restart: unless-stopped
container_name: ${W9_NAME}
container_name: ${W9_ID}
ports:
- ${W9_DB_PORT}:27017
- ${W9_DB_PORT_SET}:${W9_DB_PORT}
env_file: .env
environment:
MONGO_INITDB_ROOT_USERNAME: ${W9_USER}
Expand Down
9 changes: 1 addition & 8 deletions apps/mongodb/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@
{
"dist": "community",
"version": [
"2.2",
"latest"
]
},
{
"dist": "enterprise",
"version": [
"1.8.2",
"6.0",
"latest"
]
}
Expand Down
23 changes: 12 additions & 11 deletions apps/moodle/.env
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
W9_POWER_PASSWO=uQ8E1wVTzG8SOk3!

W9_VERSION=4.2
W9_USER=admin
W9_PASSWORD=$W9_POWER_PASSWO
W9_HTTP_PORT=9001
W9_NAME=moodle
W9_ID=moodle
W9_REPO=docker.io/bitnami/moodle

#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
W9_HTTP_PORT=8080
W9_HTTP_PORT_SET=9001
W9_NETWORK=websoft9
W9_URL_REPLACE=false
W9_URL=appname.example.com
W9_DB_MARIADB_VERSION=10.6
W9_DB_MARIADB_PORT=3306
W9_DB_MARIADB_USER=moodle
W9_DB_MARIADB_PASSWORD=$W9_POWER_PASSWO
W9_DB_MARIADB_NAME=moodle
W9_DB_MARIADB_HOST=mariadb
W9_USER=admin
W9_PASSWORD=$W9_POWER_PASSWO
W9_DB_EXPOSE="mariadb"
W9_DIST=community
#### --------------------------------------------------------------------------------------- ####


# below envs is from Bitnami Moodle

Expand Down
28 changes: 13 additions & 15 deletions apps/moodle/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ version: "3.8"

services:
moodle:
image: docker.io/bitnami/moodle:${W9_VERSION}
container_name: ${W9_NAME}
image: ${W9_REPO}:${W9_VERSION}
container_name: ${W9_ID}
restart: unless-stopped
environment:
- ALLOW_EMPTY_PASSWORD=no
- MOODLE_DATABASE_HOST=${W9_NAME}-db
- MOODLE_DATABASE_HOST=${W9_ID}-mariadb
- MOODLE_DATABASE_PORT_NUMBER=3306
- MOODLE_DATABASE_USER=${W9_DB_MARIADB_USER}
- MOODLE_DATABASE_PASSWORD=${W9_DB_MARIADB_PASSWORD}
- MOODLE_DATABASE_NAME=${W9_DB_MARIADB_NAME}
- MOODLE_DATABASE_USER=${W9_ID}
- MOODLE_DATABASE_PASSWORD=${W9_POWER_PASSWO}
- MOODLE_DATABASE_NAME=${W9_ID}
- MOODLE_USERNAME=${W9_USER}
- MOODLE_PASSWORD=${W9_PASSWORD}
ports:
- "${W9_HTTP_PORT}:8080"
- "${W9_HTTP_PORT_SET}:${W9_HTTP_PORT}"
env_file:
- .env
volumes:
Expand All @@ -28,19 +28,17 @@ services:
- mariadb

mariadb:
image: docker.io/bitnami/mariadb:${W9_DB_MARIADB_VERSION}
container_name: ${W9_NAME}-db
image: docker.io/bitnami/mariadb:10.6
container_name: ${W9_ID}-mariadb
restart: unless-stopped
environment:
- ALLOW_EMPTY_PASSWORD=no
- MARIADB_USER=${W9_DB_MARIADB_USER}
- MARIADB_PASSWORD=${W9_DB_MARIADB_PASSWORD}
- MARIADB_ROOT_PASSWORD=${W9_DB_MARIADB_PASSWORD}
- MARIADB_DATABASE=${W9_DB_MARIADB_NAME}
- MARIADB_USER=${W9_ID}
- MARIADB_PASSWORD=${W9_POWER_PASSWO}
- MARIADB_ROOT_PASSWORD=${W9_POWER_PASSWO}
- MARIADB_DATABASE=${W9_ID}
- MARIADB_CHARACTER_SET=utf8mb4
- MARIADB_COLLATE=utf8mb4_unicode_ci
ports:
- ${W9_DB_MARIADB_PORT}:3306
volumes:
- "mariadb_data:/bitnami/mariadb"

Expand Down
9 changes: 1 addition & 8 deletions apps/moodle/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@
{
"dist": "community",
"version": [
"2.2",
"latest"
]
},
{
"dist": "enterprise",
"version": [
"1.8.2",
"4.2",
"latest"
]
}
Expand Down
10 changes: 7 additions & 3 deletions apps/n8n/.env
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
W9_POWER_PASSWO=12rMxExC45LsCT

W9_NAME=n8n
W9_ID=n8n
W9_REPO=docker.n8n.io/n8nio/n8n
W9_VERSION=latest

# port, W9_PORT is need at leaset
W9_HTTP_PORT=9001

#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
W9_HTTP_PORT=5678
W9_HTTP_PORT_SET=9001
W9_NETWORK=websoft9

#### --------------------------------------------------------------------------------------- ####

N8N_CONFIG_FILES="/home/node/.n8n/my-config.json"
4 changes: 2 additions & 2 deletions apps/n8n/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ version: '3.8'
services:
n8n:
image: $W9_REPO:$W9_VERSION
container_name: $W9_NAME
container_name: $W9_ID
restart: unless-stopped
env_file:
- .env
ports:
- '${W9_HTTP_PORT}:5678'
- '${W9_HTTP_PORT_SET}:${W9_HTTP_PORT}'
volumes:
- 'n8n:/home/node/.n8n'
- './src/my-config.json:$N8N_CONFIG_FILES'
Expand Down
8 changes: 0 additions & 8 deletions apps/n8n/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
{
"dist": "community",
"version": [
"2.2",
"latest"
]
},
{
"dist": "enterprise",
"version": [
"1.8.2",
"latest"
]
}
Expand Down
16 changes: 11 additions & 5 deletions apps/neo4j/.env
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
W9_POWER_PASSWO=8dHZPFLFGoPXuC
W9_REPO=neo4j

W9_DB_NEO4J_PORT=7687
W9_VERSION=5.7
W9_ID=neo4j


#### -- Not allowed to edit below environments when recreate app based on existing data -- ####

W9_HTTP_PORT=7474
W9_HTTP_PORT_SET=9001
W9_DB_NEO4J_USER=neo4j
W9_DB_NEO4J_PASSWORD=$W9_POWER_PASSWO
W9_VERSION=5.7
W9_NAME=neo4j
W9_HTTP_PORT=9001
W9_NETWORK=websoft9
W9_URL_REPLACE=false
W9_URL=appname.example.com
W9_URL=appname.example.com
#### --------------------------------------------------------------------------------------- ####
7 changes: 3 additions & 4 deletions apps/neo4j/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ version: '3.8'
services:

neo4j:
container_name: ${W9_NAME}
image: neo4j:${W9_VERSION}
container_name: ${W9_ID}
image: $W9_REPO:${W9_VERSION}
env_file: .env
environment:
# SECURE_FILE_PERMISSIONS=yes
- NEO4J_AUTH=${W9_DB_NEO4J_USER}/${W9_DB_NEO4J_PASSWORD}
ports:
- ${W9_DB_NEO4J_PORT}:7687
- ${W9_HTTP_PORT}:7474
- '${W9_HTTP_PORT_SET}:${W9_HTTP_PORT}'
restart: unless-stopped
volumes:
- neo4j:/var/lib/neo4j
Expand Down
9 changes: 1 addition & 8 deletions apps/neo4j/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@
{
"dist": "community",
"version": [
"2.2",
"latest"
]
},
{
"dist": "enterprise",
"version": [
"1.8.2",
"5.7",
"latest"
]
}
Expand Down
8 changes: 6 additions & 2 deletions apps/netdata/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
W9_VERSION=latest
W9_HTTP_PORT=9001
W9_NAME=netdata
W9_ID=netdata
W9_REPO=netdata/netdata
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
W9_HTTP_PORT=19999
W9_HTTP_PORT_SET=9001
W9_NETWORK=websoft9
W9_URL=netdata.example.com
#### --------------------------------------------------------------------------------------- ####
6 changes: 3 additions & 3 deletions apps/netdata/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ version: '3.8'

services:
netdata:
image: netdata/netdata:$W9_VERSION
container_name: $W9_NAME
image: $W9_REPO:$W9_VERSION
container_name: $W9_ID
hostname: $W9_URL
ports:
- $W9_HTTP_PORT:19999
- '$W9_HTTP_PORT_SET:$W9_HTTP_PORT'
restart: unless-stopped
cap_add:
- SYS_PTRACE
Expand Down
8 changes: 0 additions & 8 deletions apps/netdata/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
{
"dist": "community",
"version": [
"2.2",
"latest"
]
},
{
"dist": "enterprise",
"version": [
"1.8.2",
"latest"
]
}
Expand Down

0 comments on commit 4d85536

Please sign in to comment.