Compare commits
15 Commits
2.1.1+v7.3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| b8609fd2aa | |||
| a6ea4f0b41 | |||
|
4729fb7824
|
|||
| eb951f1a1c | |||
| 70331d393f | |||
| 2286535613 | |||
| 2bd0920564 | |||
| 66e3194385 | |||
| 078fb53d4e | |||
| 1d9317c231 | |||
| 94cc1db80c | |||
| 17b1b99c9f | |||
| b167073868 | |||
| 523aefdb4a | |||
| 4b71066eda |
@ -18,7 +18,7 @@ steps:
|
||||
STACK_NAME: wekan
|
||||
LETS_ENCRYPT_ENV: production
|
||||
SECRET_OAUTH2_SECRET_VERSION: v1
|
||||
ENTRYPOINT_VERSION: v1
|
||||
ENTRYPOINT_VERSION: v2
|
||||
SECRET_OAUTH2_SECRET_VERSION: v1
|
||||
trigger:
|
||||
branch:
|
||||
@ -35,7 +35,7 @@ steps:
|
||||
from_secret: drone_abra-bot_token
|
||||
fork: true
|
||||
repositories:
|
||||
- coop-cloud/auto-recipes-catalogue-json
|
||||
- toolshed/auto-recipes-catalogue-json
|
||||
|
||||
trigger:
|
||||
event: tag
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
TYPE=wekan
|
||||
TIMEOUT=300
|
||||
#TIMEOUT=
|
||||
ENABLE_AUTO_UPDATE=true
|
||||
ENABLE_BACKUPS=true
|
||||
LETS_ENCRYPT_ENV=production
|
||||
SECRET_OAUTH2_SECRET_VERSION=v1
|
||||
|
||||
@ -26,6 +27,9 @@ RICHER_CARD_COMMENT_EDITOR=false
|
||||
|
||||
# PASSWORD_LOGIN_ENABLED=false
|
||||
|
||||
# LOGO_IMG_URL=https://authentik.example.com/static/dist/assets/icons/icon_left_brand.svg
|
||||
# LOGO_LINK_URL=https://authentik.example.com
|
||||
|
||||
### OAUTH2 ###
|
||||
|
||||
OAUTH2_ENABLED=false
|
||||
|
||||
26
abra.sh
26
abra.sh
@ -1 +1,25 @@
|
||||
export ENTRYPOINT_VERSION=v2
|
||||
export ENTRYPOINT_VERSION=v4
|
||||
|
||||
set_settings(){
|
||||
mongosh wekan --eval '
|
||||
db.settings.updateOne(
|
||||
{},
|
||||
{
|
||||
$set: {
|
||||
"disableForgotPassword": true,
|
||||
"displayAuthenticationMethod" : false,
|
||||
"disableRegistration" : true,
|
||||
"customTopLeftCornerLogoImageUrl": "'$LOGO_IMG_URL'",
|
||||
"customTopLeftCornerLogoLinkUrl": "'$LOGO_LINK_URL'",
|
||||
}
|
||||
}
|
||||
)'
|
||||
}
|
||||
|
||||
show_mongo_version (){
|
||||
mongosh --eval 'db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )'
|
||||
}
|
||||
|
||||
update_mongo_version (){
|
||||
mongosh --eval 'db.adminCommand( { setFeatureCompatibilityVersion: "5.0" } )'
|
||||
}
|
||||
|
||||
24
compose.yml
24
compose.yml
@ -1,29 +1,33 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
db:
|
||||
image: mongo:5.0
|
||||
image: mongo:6.0
|
||||
environment:
|
||||
- LOGO_IMG_URL
|
||||
- LOGO_LINK_URL
|
||||
command: mongod --oplogSize 128 --quiet
|
||||
volumes:
|
||||
- wekan-db:/data/db
|
||||
networks:
|
||||
- internal
|
||||
healthcheck:
|
||||
test: echo 'db.runCommand("ping").ok' | mongo localhost:27017/test --quiet
|
||||
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 1m
|
||||
deploy:
|
||||
labels:
|
||||
backupbot.backup: "true"
|
||||
backupbot.backup: "${ENABLE_BACKUPS:-true}"
|
||||
backupbot.backup.pre-hook: "mongodump --archive=/data/db/wekan.db"
|
||||
backupbot.backup.post-hook: "rm -rf /data/db/wekan.db"
|
||||
backupbot.backup.path: "/data/db/wekan.db"
|
||||
backupbot.backup.volumes.wekan-db.path: "wekan.db"
|
||||
backupbot.restore.post-hook: 'mongorestore --drop --archive=/data/db/wekan.db'
|
||||
|
||||
app:
|
||||
image: quay.io/wekan/wekan:v7.30
|
||||
image: quay.io/wekan/wekan:v7.97
|
||||
environment:
|
||||
- MONGO_URL=mongodb://db:27017/wekan
|
||||
- NODE_OPTIONS="--max_old_space_size=4096"
|
||||
- DOMAIN
|
||||
- ROOT_URL
|
||||
- DEBUG
|
||||
@ -51,6 +55,9 @@ services:
|
||||
- DEFAULT_AUTHENTICATION_METHOD
|
||||
- PROPAGATE_OIDC_DATA
|
||||
- OIDC_REDIRECTION_ENABLED
|
||||
- WRITABLE_PATH=/data
|
||||
volumes:
|
||||
- wekan-files:/data:rw
|
||||
networks:
|
||||
- internal
|
||||
- proxy
|
||||
@ -83,11 +90,12 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.1.1+v7.30"
|
||||
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
||||
- "coop-cloud.${STACK_NAME}.version=3.4.0+v7.97"
|
||||
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT}"
|
||||
|
||||
volumes:
|
||||
wekan-db:
|
||||
wekan-files:
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
|
||||
@ -25,4 +25,8 @@ file_env() {
|
||||
}
|
||||
|
||||
file_env "OAUTH2_SECRET"
|
||||
bash -c "ulimit -s 65500; exec node --stack-size=65500 /build/main.js"
|
||||
# https://github.com/wekan/wekan/issues/3585#issuecomment-1021522132
|
||||
#bash -c "ulimit -s 65500; exec node --stack-size=65500 /build/main.js"
|
||||
# https://github.com/wekan/wekan/pull/5588
|
||||
#bash -c "ulimit -n 65500; exec node /build/main.js"
|
||||
bash -c "exec node /build/main.js"
|
||||
|
||||
7
release/3.0.0+v7.50
Normal file
7
release/3.0.0+v7.50
Normal file
@ -0,0 +1,7 @@
|
||||
Breaking Change: Update MongoDB from version 5.0 to 6.0.
|
||||
========================================================
|
||||
|
||||
Before updating:
|
||||
|
||||
Run `abra app cmd <app_domaon> db show_mongo_version` to check if the featureCompatibilityVersion is above 5.0 !
|
||||
Run `abra app cmd <app_domaon> db update_mongo_version` to set featureCompatibilityVersion to version 5.0
|
||||
Reference in New Issue
Block a user