fix: vikunja
This commit is contained in:
parent
0089e86dd1
commit
674fa4d09c
@ -5,6 +5,23 @@
|
||||
# port: 3456
|
||||
|
||||
services:
|
||||
vikunja:
|
||||
image: vikunja/vikunja
|
||||
environment:
|
||||
- SERVICE_FQDN_VIKUNJA
|
||||
- VIKUNJA_SERVICE_PUBLICURL=$SERVICE_FQDN_VIKUNJA
|
||||
- VIKUNJA_SERVICE_JWTSECRET=$SERVICE_PASSWORD_JWTSECRET
|
||||
- VIKUNJA_SERVICE_ENABLEREGISTRATION=true
|
||||
- VIKUNJA_DATABASE_TYPE=postgres
|
||||
- VIKUNJA_DATABASE_HOST=postgresql
|
||||
- VIKUNJA_DATABASE_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}
|
||||
- VIKUNJA_DATABASE_USER=${SERVICE_USER_POSTGRESQL}
|
||||
- VIKUNJA_DATABASE_DATABASE=${POSTGRESQL_DATABASE}
|
||||
volumes:
|
||||
- vikunja-data:/app/vikunja/
|
||||
depends_on:
|
||||
postgresql:
|
||||
condition: service_healthy
|
||||
postgresql:
|
||||
image: postgres:16-alpine
|
||||
volumes:
|
||||
@ -18,25 +35,3 @@ services:
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
vikunja:
|
||||
image: vikunja/vikunja
|
||||
environment:
|
||||
- SERVICE_FQDN_VIKUNJA
|
||||
- VIKUNJA_SERVICE_PUBLICURL=$SERVICE_FQDN_VIKUNJA
|
||||
- VIKUNJA_SERVICE_JWTSECRET=$SERVICE_PASSWORD_JWTSECRET
|
||||
- VIKUNJA_SERVICE_ENABLEREGISTRATION=true
|
||||
- VIKUNJA_DATABASE_TYPE=postgres
|
||||
- VIKUNJA_DATABASE_HOST=postgresql
|
||||
- VIKUNJA_DATABASE_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}
|
||||
- VIKUNJA_DATABASE_USER=${SERVICE_USER_POSTGRESQL}
|
||||
- VIKUNJA_DATABASE_DATABASE=${POSTGRESQL_DATABASE}
|
||||
volumes:
|
||||
- vikunja-data:/app/vikunja/
|
||||
depends_on:
|
||||
postgresql:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "http://127.0.0.1:3456"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
@ -13,11 +13,15 @@ services:
|
||||
- VIKUNJA_SERVICE_JWTSECRET=$SERVICE_PASSWORD_JWTSECRET
|
||||
- VIKUNJA_SERVICE_ENABLEREGISTRATION=true
|
||||
- VIKUNJA_DATABASE_PATH=/db/vikunja.db
|
||||
- VIKUNJA_DATABASE_TYPE=sqlite
|
||||
volumes:
|
||||
- vikunja-data:/app/vikunja/
|
||||
- vikunja-sqlite-data:/db
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "http://127.0.0.1:3456"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
depends_on:
|
||||
- init
|
||||
init:
|
||||
image: busybox
|
||||
restart: no
|
||||
volumes:
|
||||
- vikunja-sqlite-data:/db
|
||||
command: ["sh", "-c", "touch /db/vikunja.db && chown -R 1000 /db"]
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user