Compare commits
12 Commits
0.2.2+0.20
...
main
Author | SHA1 | Date |
---|---|---|
Moritz | a45b5e158b | |
Moritz | 1669d64a5a | |
Moritz | 8be72aa8df | |
Moritz | e501cc662d | |
Philipp Rothmann | 8050d24c7c | |
Philipp Rothmann | d3c98de025 | |
Moritz | 365448458c | |
Moritz | 4bbec31d8a | |
Moritz | 1ce54b1fe3 | |
Philipp Rothmann | fe83250372 | |
Philipp Rothmann | 4cfe5f66a8 | |
Philipp Rothmann | 6955772632 |
12
.env.sample
12
.env.sample
|
@ -1,4 +1,6 @@
|
|||
TYPE=vikunja
|
||||
TIMEOUT=300
|
||||
ENABLE_AUTO_UPDATE=true
|
||||
|
||||
DOMAIN=vikunja.example.com
|
||||
|
||||
|
@ -14,14 +16,16 @@ LOG_LEVEL=INFO
|
|||
|
||||
COMPOSE_FILE=compose.yml
|
||||
|
||||
#VIKUNJA_RATELIMIT_NOAUTHLIMIT=10
|
||||
|
||||
# SSO OAUTH
|
||||
# e.g. see https://goauthentik.io/integrations/services/vikunja/
|
||||
# COMPOSE_FILE="${COMPOSE_FILE}:compose.oauth.yml"
|
||||
# OAUTH_ENABLED=true
|
||||
# OAUTH_NAME
|
||||
# OAUTH_URL
|
||||
# OAUTH_CLIENT_ID
|
||||
# OAUTH_LOGOUT_URL
|
||||
# OAUTH_NAME=authentik
|
||||
# OAUTH_URL=https://login.example.com/application/o/vikunja/
|
||||
# OAUTH_CLIENT_ID=vikunja
|
||||
# OAUTH_LOGOUT_URL=https://login.example.com/application/o/vikunja/end-session/
|
||||
# SECRET_OAUTH_SECRET_VERSION=v1
|
||||
|
||||
# E-MAIL
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
authentik:
|
||||
env:
|
||||
OAUTH_NAME: authentik
|
||||
OAUTH_URL: https://authentik.example.com/application/o/vikunja/
|
||||
OAUTH_LOGOUT_URL: https://authentik.example.com/application/o/vikunja/end-session/
|
||||
OAUTH_CLIENT_ID: vikunja
|
||||
uncomment:
|
||||
- compose.oauth.yml
|
||||
- OAUTH_ENABLED
|
||||
- SECRET_OAUTH_SECRET_VERSION
|
||||
shared_secrets:
|
||||
vikunja_secret: oauth_secret
|
22
compose.yml
22
compose.yml
|
@ -3,10 +3,11 @@ version: "3.8"
|
|||
|
||||
services:
|
||||
api:
|
||||
image: vikunja/api:0.20.2
|
||||
image: vikunja/api:0.22.1
|
||||
environment:
|
||||
- DOMAIN
|
||||
- LOG_LEVEL
|
||||
- VIKUNJA_RATELIMIT_NOAUTHLIMIT
|
||||
volumes:
|
||||
- files:/app/vikunja/files
|
||||
networks:
|
||||
|
@ -17,10 +18,8 @@ services:
|
|||
- db_password
|
||||
configs:
|
||||
- source: config_yml
|
||||
target: /app/vikunja/config.yml
|
||||
target: /etc/vikunja/config.yml
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.${STACK_NAME}_api.loadbalancer.server.port=3456"
|
||||
|
@ -29,19 +28,18 @@ services:
|
|||
- "traefik.http.routers.${STACK_NAME}_api.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
|
||||
app:
|
||||
image: vikunja/frontend:0.20.3
|
||||
image: vikunja/frontend:0.22.1
|
||||
networks:
|
||||
- proxy
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
||||
- "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=0.2.2+0.20.3"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.4.0+0.22.1"
|
||||
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
||||
healthcheck:
|
||||
test: [ "CMD", "curl", "-f", "http://localhost" ]
|
||||
interval: 30s
|
||||
|
@ -69,13 +67,11 @@ services:
|
|||
secrets:
|
||||
- db_password
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
labels:
|
||||
backupbot.backup: "true"
|
||||
backupbot.backup.pre-hook: "mkdir -p /tmp/backup/ && PGPASSWORD=$$(cat $${POSTGRES_PASSWORD_FILE}) pg_dump -U $${POSTGRES_USER} $${POSTGRES_DB} > /tmp/backup/backup.sql"
|
||||
backupbot.backup.post-hook: "rm -rf /tmp/backup"
|
||||
backupbot.backup.path: "/tmp/backup/"
|
||||
backupbot.backup.pre-hook: "PGPASSWORD=$$(cat $${POSTGRES_PASSWORD_FILE}) pg_dump -U $${POSTGRES_USER} $${POSTGRES_DB} > /var/lib/postgresql/data/backup.sql"
|
||||
backupbot.backup.post-hook: "rm -rf /var/lib/postgresql/data/backup.sql"
|
||||
backupbot.backup.path: "/var/lib/postgresql/data/backup.sql"
|
||||
|
||||
volumes:
|
||||
files:
|
||||
|
|
Loading…
Reference in New Issue