Skip to content

Commit af9f941

Browse files
authored
Merge pull request #1256 from Websoft9/update-wikijs-dd877da4
Update wikijs
2 parents 0e7e8b8 + 55fa660 commit af9f941

File tree

12 files changed

+46
-199
lines changed

12 files changed

+46
-199
lines changed

apps/wikijs/.env

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,28 @@
1-
W9_REPO=wordpress
2-
W9_DIST=community
3-
W9_VERSION=latest
4-
5-
W9_POWER_PASSWORD=1PrMxExC45LsCT
1+
W9_REPO=ghcr.io/requarks/wiki
2+
W9_DIST='community'
3+
W9_VERSION='latest'
4+
W9_POWER_PASSWORD='!OWCxOHHnQ69aM5f'
65

76
# Environments which for user settings when create application
87
# Named expression: W9_xxx_xxx_SET, xxx refer to file fields
9-
W9_HTTP_PORT_SET=9001
10-
# W9_HTTPS_PORT_SET=9002
11-
# W9_DB_PORT_SET=3306
12-
# W9_SSH_PORT_SET=23
13-
W9_KEY_SET="dfsjdkjf77xjxcjcj"
8+
W9_HTTP_PORT_SET='9001'
149

1510
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
16-
17-
W9_ID=wikijs
11+
W9_ID='wikijs'
1812

1913
# W9_HTTP_PORT or W9_HTTPS_PORT is need at leaset and used for proxy for web application
2014
# Some container (e.g teleport) need HTTPS access, then need to set this pra
21-
W9_HTTP_PORT=80
22-
W9_HTTPS_PORT=81
23-
24-
W9_LOGIN_USER=admin
25-
# use https://1password.com/zh-cn/password-generator/ to genarate 14 bit password
26-
# this password can also use password file
27-
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
28-
W9_ADMIN_PATH="/wp-login"
15+
W9_HTTP_PORT=3000
2916

3017
# Container name's suffix must use one of the value
31-
W9_DB_EXPOSE="mysql,postgresql,mariadb,mongodb,redis"
18+
W9_DB_EXPOSE="postgresql"
3219

3320
# It is used when the application APP needs to set an external URL, which can be IP(or domain), IP:PORT
3421
# If have protocols, should be set it in the APP's ENV
35-
W9_URL=internet_ip:$W9_HTTP_PORT_SET
36-
# modifies W9_URL on init when it is true
37-
W9_URL_REPLACE=true
22+
W9_URL='internet_ip:$W9_HTTP_PORT_SET'
3823

3924
W9_NETWORK=websoft9
4025

4126
#### ----------------------------------------------------------------------------------------- ####
4227

43-
4428
# Below environment is created by apphub
45-
46-
#W9_NAME=""
47-
#W9_RCODE=""

apps/wikijs/Dockerfile

Lines changed: 0 additions & 21 deletions
This file was deleted.

apps/wikijs/Notes.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
# Appname
2-
## FAQ
1+
# Wiki.js
2+
1. During the initial startup, configuration is accomplished via IP/domain name, including the setup of username, password, and website domain name. The domain name does not need to be configured, as it does not impact the domain configuration and accessibility of Websoft9 itself.
3+
4+
2. During the initial initialization process of the application, there may be errors popping up. Please check the container log as follows:
5+
```
6+
2025-01-18T06:25:57.261Z [MASTER] error: Fetching latest updates from Graph endpoint: [ FAILED ]
7+
2025-01-18T06:25:57.261Z [MASTER] error: fetch failed
8+
2025-01-18T06:25:57.459Z [MASTER] error: Syncing locales with Graph endpoint: [ FAILED ]
9+
2025-01-18T06:25:57.460Z [MASTER] error: fetch failed
10+
```
11+
The reason is that the application itself needs to pull data from multiple languages online, and if the pull fails, it can be rebuilt and tried multiple times

apps/wikijs/README.jinja2

Lines changed: 0 additions & 26 deletions
This file was deleted.

apps/wikijs/docker-compose.yml

Lines changed: 26 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,37 @@
1-
# image,docs: https://hub.docker.com/_/wordpress/
2-
31
services:
42

5-
wordpress:
6-
image: $W9_REPO:$W9_VERSION
7-
container_name: $W9_ID
3+
db:
4+
image: postgres:15-alpine
5+
container_name: $W9_ID-postgresql
6+
environment:
7+
POSTGRES_DB: wiki
8+
POSTGRES_PASSWORD: $W9_POWER_PASSWORD
9+
POSTGRES_USER: postgres
810
restart: unless-stopped
9-
#This is for access host from container
10-
# extra_hosts: ["host.docker.internal:host-gateway"]
11-
# command: |
12-
# /bin/bash -c "ping -c 3 host.docker.internal"
13-
logging:
14-
driver: "json-file"
15-
options:
16-
max-file: "5"
17-
max-size: 10m
18-
deploy:
19-
resources:
20-
limits:
21-
memory: 5g
22-
cpus: '0.7'
23-
ports:
24-
- $W9_HTTP_PORT_SET:80
25-
env_file: .env
2611
volumes:
27-
- wordpress:/var/www/html
28-
- ./src/php_exra.ini:/usr/local/etc/php/conf.d/php_exra.ini
12+
- db-data:/var/lib/postgresql/data
2913

30-
mariadb:
31-
image: mariadb:10.4
32-
container_name: $W9_ID-mariadb
33-
restart: unless-stopped
34-
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --innodb_log_buffer_size=30M
35-
volumes:
36-
- mysql_data:/var/lib/mysql
14+
wiki:
15+
image: $W9_REPO:$W9_VERSION
16+
container_name: $W9_ID
17+
depends_on:
18+
- db
3719
environment:
38-
MYSQL_DATABASE: $W9_ID
39-
MYSQL_USER: $W9_ID
40-
MYSQL_PASSWORD: $W9_POWER_PASSWORD
41-
MYSQL_ROOT_PASSWORD: $W9_POWER_PASSWORD
20+
DB_TYPE: postgres
21+
DB_HOST: $W9_ID-postgresql
22+
DB_PORT: 5432
23+
DB_USER: postgres
24+
DB_PASS: $W9_POWER_PASSWORD
25+
DB_NAME: wiki
26+
restart: unless-stopped
27+
env_file: .env
28+
ports:
29+
- $W9_HTTP_PORT_SET:3000
4230

4331
volumes:
44-
wordpress:
45-
mysql_data:
46-
32+
db-data:
33+
4734
networks:
4835
default:
4936
name: $W9_NETWORK
50-
external: true
37+
external: true

apps/wikijs/src/after_up.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/wikijs/src/encrypt.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

apps/wikijs/src/filelist

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/wikijs/src/get_version.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/wikijs/src/nginx-proxy.conf.template

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)