fix: vikunja
This commit is contained in:
parent
0089e86dd1
commit
674fa4d09c
@ -5,6 +5,23 @@
|
|||||||
# port: 3456
|
# port: 3456
|
||||||
|
|
||||||
services:
|
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:
|
postgresql:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
volumes:
|
volumes:
|
||||||
@ -18,25 +35,3 @@ services:
|
|||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 20s
|
timeout: 20s
|
||||||
retries: 10
|
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_JWTSECRET=$SERVICE_PASSWORD_JWTSECRET
|
||||||
- VIKUNJA_SERVICE_ENABLEREGISTRATION=true
|
- VIKUNJA_SERVICE_ENABLEREGISTRATION=true
|
||||||
- VIKUNJA_DATABASE_PATH=/db/vikunja.db
|
- VIKUNJA_DATABASE_PATH=/db/vikunja.db
|
||||||
|
- VIKUNJA_DATABASE_TYPE=sqlite
|
||||||
volumes:
|
volumes:
|
||||||
- vikunja-data:/app/vikunja/
|
- vikunja-data:/app/vikunja/
|
||||||
- vikunja-sqlite-data:/db
|
- vikunja-sqlite-data:/db
|
||||||
healthcheck:
|
depends_on:
|
||||||
test: ["CMD", "wget", "--spider", "http://127.0.0.1:3456"]
|
- init
|
||||||
interval: 5s
|
init:
|
||||||
timeout: 20s
|
image: busybox
|
||||||
retries: 10
|
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