Compare commits

...
Author SHA1 Message Date
renovate-bot d5bd1aaf32 chore(deps): update mongo docker tag to v9 2026-10-01 01:27:27 +00:00
moritz a28194b4a8 chore: publish 5.0.0+v12.08 release
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
2026-09-28 19:34:24 +02:00
moritz 2fd4563bf7 downgrade mongo db to working upstream version 7.0 2026-09-28 19:31:06 +02:00
moritz cc61647a90 chore: update image tags 2026-09-28 19:23:33 +02:00
moritz 073ff878c7 fix replica set 2026-09-28 19:21:08 +02:00
+22 -16
View File
@@ -1,27 +1,33 @@
version: "3.8"
services:
db:
image: mongo:8.3
image: mongo:9.0
hostname: db
environment:
- LOGO_IMG_URL
- LOGO_LINK_URL
command: >
sh -c "
mongod --oplogSize 128 --replSet rs0 --quiet --bind_ip_all &
until mongosh --eval 'rs.initiate()' > /dev/null 2>&1; do
sleep 2
done;
wait"
command:
- bash
- -c
- |
(
until mongosh --quiet --eval 'try { rs.status().ok } catch (e) { rs.initiate({_id: "rs0", members: [{_id: 0, host: "db:27017"}]}).ok }' 2>/dev/null | grep -q 1; do
sleep 2
done
echo "[init] replica set rs0 ready"
) &
exec mongod --replSet rs0 --bind_ip_all --oplogSize 128 --quiet
volumes:
- wekan-db:/data/db
networks:
- internal
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 30s
test: ["CMD", "mongosh", "--host", "127.0.0.1", "--port", "27017", "--quiet", "--eval", "try { quit(rs.status().ok === 1 && db.hello().isWritablePrimary ? 0 : 1) } catch (e) { quit(1) }"]
interval: 10s
timeout: 10s
retries: 10
start_period: 1m
retries: 30
start_period: 5m
stop_grace_period: 1m
deploy:
labels:
backupbot.backup: "${ENABLE_BACKUPS:-true}"
@@ -30,10 +36,10 @@ services:
backupbot.restore.post-hook: "mongorestore --drop --archive=/data/db/wekan.db"
app:
image: quay.io/wekan/wekan:v10.79
image: quay.io/wekan/wekan:v12.08
environment:
- METEOR_REACTIVITY_ORDER=changeStreams,oplog,polling
- MONGO_URL=mongodb://db:27017/wekan
- MONGO_URL=mongodb://db:27017/wekan?replicaSet=rs0
- MONGO_OPLOG_URL=mongodb://db:27017/local?replicaSet=rs0
- NODE_OPTIONS="--max_old_space_size=4096"
- DOMAIN
@@ -76,7 +82,7 @@ services:
interval: 30s
timeout: 10s
retries: 10
start_period: 3m
start_period: 5m
secrets:
- oauth2_secret
configs:
@@ -98,7 +104,7 @@ 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=4.0.1+v10.79"
- "coop-cloud.${STACK_NAME}.version=5.0.0+v12.08"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT}"
volumes: