Compare commits

...

17 Commits

4 changed files with 57 additions and 14 deletions

41
.drone.yml Normal file
View File

@ -0,0 +1,41 @@
---
kind: pipeline
name: deploy to swarm-test.autonomic.zone
steps:
- name: deployment
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
settings:
host: swarm-test.autonomic.zone
stack: wekan
generate_secrets: true
purge: true
deploy_key:
from_secret: drone_ssh_swarm_test
networks:
- proxy
environment:
DOMAIN: wekan.swarm-test.autonomic.zone
STACK_NAME: wekan
LETS_ENCRYPT_ENV: production
SECRET_OAUTH2_SECRET_VERSION: v1
ENTRYPOINT_VERSION: v1
SECRET_OAUTH2_SECRET_VERSION: v1
trigger:
branch:
- main
---
kind: pipeline
name: generate recipe catalogue
steps:
- name: release a new version
image: plugins/downstream
settings:
server: https://build.coopcloud.tech
token:
from_secret: drone_abra-bot_token
fork: true
repositories:
- coop-cloud/auto-recipes-catalogue-json
trigger:
event: tag

View File

@ -1,4 +1,6 @@
TYPE=wekan TYPE=wekan
TIMEOUT=300
ENABLE_AUTO_UPDATE=true
LETS_ENCRYPT_ENV=production LETS_ENCRYPT_ENV=production
SECRET_OAUTH2_SECRET_VERSION=v1 SECRET_OAUTH2_SECRET_VERSION=v1
@ -7,8 +9,8 @@ COMPOSE_FILE="compose.yml"
# Set this to run mongodb in replicaset mode (needs initialisation!) # Set this to run mongodb in replicaset mode (needs initialisation!)
# COMPOSE_FILE="${COMPOSE_FILE}:compose.rs.yml" # COMPOSE_FILE="${COMPOSE_FILE}:compose.rs.yml"
DOMAIN=board.${DOMAIN} DOMAIN=wekan.example.com
ROOT_URL=https://board.${DOMAIN} ROOT_URL=https://wekan.example.com
DEBUG=false DEBUG=false
@ -29,7 +31,7 @@ RICHER_CARD_COMMENT_EDITOR=false
OAUTH2_ENABLED=false OAUTH2_ENABLED=false
# OAUTH2_LOGIN_STYLE=redirect # OAUTH2_LOGIN_STYLE=redirect
# OAUTH2_CLIENT_ID=wekan # OAUTH2_CLIENT_ID=wekan
# OAUTH2_SERVER_URL=https://sso.${DOMAIN} # OAUTH2_SERVER_URL=https://authentik.example.com
# OAUTH2_AUTH_ENDPOINT=/application/o/authorize/ # OAUTH2_AUTH_ENDPOINT=/application/o/authorize/
# OAUTH2_USERINFO_ENDPOINT=/application/o/userinfo/ # OAUTH2_USERINFO_ENDPOINT=/application/o/userinfo/
# OAUTH2_TOKEN_ENDPOINT=/application/o/token/ # OAUTH2_TOKEN_ENDPOINT=/application/o/token/

View File

@ -1,2 +1 @@
export SECRET_OAUTH2_SECRET_VERSION=v1
export ENTRYPOINT_VERSION=v2 export ENTRYPOINT_VERSION=v2

View File

@ -2,7 +2,7 @@ version: '3.8'
services: services:
db: db:
image: mongo:5.0 image: mongo:5.0
command: mongod --logpath /dev/null --oplogSize 128 --quiet command: mongod --oplogSize 128 --quiet
volumes: volumes:
- wekan-db:/data/db - wekan-db:/data/db
networks: networks:
@ -16,12 +16,12 @@ services:
deploy: deploy:
labels: labels:
backupbot.backup: "true" backupbot.backup: "true"
backupbot.backup.pre-hook: "mkdir /tmp/backup/ && mongodump --archive=/tmp/backup/wekan.db" backupbot.backup.pre-hook: "mongodump --archive=/data/db/wekan.db"
backupbot.backup.post-hook: "rm -rf /tmp/backup" backupbot.backup.post-hook: "rm -rf /data/db/wekan.db"
backupbot.backup.path: "/tmp/backup/" backupbot.backup.path: "/data/db/wekan.db"
app: app:
image: quay.io/wekan/wekan:v6.68 image: quay.io/wekan/wekan:v7.30
environment: environment:
- MONGO_URL=mongodb://db:27017/wekan - MONGO_URL=mongodb://db:27017/wekan
- DOMAIN - DOMAIN
@ -83,7 +83,8 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=0.12.0+v6.68" - "coop-cloud.${STACK_NAME}.version=2.1.0+v7.30"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
volumes: volumes:
wekan-db: wekan-db: