From 40037ba5e919e28ece5c77f157ab98ee4cf0c182 Mon Sep 17 00:00:00 2001 From: Raine Date: Fri, 20 Oct 2023 17:54:32 +0200 Subject: [PATCH] feat: wekan on apoc --- .../custom/nginx/conf.d/wekan.conf | 8 +++ .../docker-compose.d/docker-compose.wekan.yml | 49 +++++++++++++++++++ servers/apoc/setup.d/20-woodpecker.sh | 3 -- servers/apoc/setup.d/80-wekan.sh | 3 ++ 4 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 servers/apoc/docker-compose.d/custom/nginx/conf.d/wekan.conf create mode 100644 servers/apoc/docker-compose.d/docker-compose.wekan.yml delete mode 100644 servers/apoc/setup.d/20-woodpecker.sh create mode 100644 servers/apoc/setup.d/80-wekan.sh diff --git a/servers/apoc/docker-compose.d/custom/nginx/conf.d/wekan.conf b/servers/apoc/docker-compose.d/custom/nginx/conf.d/wekan.conf new file mode 100644 index 0000000..4db9243 --- /dev/null +++ b/servers/apoc/docker-compose.d/custom/nginx/conf.d/wekan.conf @@ -0,0 +1,8 @@ +server { + listen 80; + server_name boards.ixvd.net; + + location / { + proxy_pass http://wekan:8080$request_uri; + } +} \ No newline at end of file diff --git a/servers/apoc/docker-compose.d/docker-compose.wekan.yml b/servers/apoc/docker-compose.d/docker-compose.wekan.yml new file mode 100644 index 0000000..83d4936 --- /dev/null +++ b/servers/apoc/docker-compose.d/docker-compose.wekan.yml @@ -0,0 +1,49 @@ +version: '2.2' +services: + wekandb: + image: mongo:6 + restart: always + command: mongod --logpath /dev/null --oplogSize 128 --quiet + networks: + - wekan-tier + volumes: + - /etc/localtime:/etc/localtime:ro + - /srv/wekan/other/db:/data/db + + wekan: + image: ghcr.io/wekan/wekan:latest + restart: always + env_file: + - /etc/ixvd/secrets/env/wekan.env + environment: + ROOT_URL: "https://boards.ixvd.net" + WRITABLE_PATH: "/data" + MONGO_URL: "mongodb://wekandb:27017/wekan" + MAIL_FROM: "Wekan Notifications " + WITH_API: "true" + RICHER_CARD_COMMENT_EDITOR: "false" + CARD_OPENED_WEBHOOK_ENABLED: "false" + BIGEVENTS_PATTERN: "NONE" + BROWSER_POLICY_ENABLED: "true" + OIDC_REDIRECTION_ENABLED: "true" + OAUTH2_ENABLED: "true" + OAUTH2_LOGIN_STYLE: "redirect" + depends_on: + - wekandb + networks: + - wekan-tier + - proxy + volumes: + - /etc/localtime:/etc/localtime:ro + - wekan-data:/data:rw + +volumes: + wekan-data: + driver: local + driver_opts: + type: none + device: /srv/wekan/data + o: bind + +networks: + wekan-tier: diff --git a/servers/apoc/setup.d/20-woodpecker.sh b/servers/apoc/setup.d/20-woodpecker.sh deleted file mode 100644 index 8771daf..0000000 --- a/servers/apoc/setup.d/20-woodpecker.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -mkdir -p /srv/woodpecker/data diff --git a/servers/apoc/setup.d/80-wekan.sh b/servers/apoc/setup.d/80-wekan.sh new file mode 100644 index 0000000..568df2f --- /dev/null +++ b/servers/apoc/setup.d/80-wekan.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +mkdir -p /srv/wekan/data \ No newline at end of file