Skip to content

Commit

Permalink
Add dynamic compose for vikunja (#6104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancelot-Enguerrand authored Dec 23, 2024
1 parent 6eb99e8 commit d831566
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/vikunja/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"name": "Vikunja",
"available": true,
"exposable": true,
"dynamic_config": true,
"port": 8135,
"id": "vikunja",
"categories": ["utilities"],
"tipi_version": 15,
"tipi_version": 16,
"version": "0.24.6",
"description": "The Todo-app to organize your life.",
"short_desc": "The Todo-app to organize your life.",
Expand All @@ -27,5 +28,5 @@
],
"supported_architectures": ["arm64", "amd64"],
"created_at": 1691943801422,
"updated_at": 1734907226000
"updated_at": 1734908806202
}
51 changes: 51 additions & 0 deletions apps/vikunja/docker-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"services": [
{
"name": "vikunja",
"image": "vikunja/vikunja:0.24.6",
"isMain": true,
"internalPort": 3456,
"environment": {
"VIKUNJA_DATABASE_HOST": "vikunja-db",
"VIKUNJA_DATABASE_PASSWORD": "${VIKUNJA_DB_PASSWORD}",
"VIKUNJA_DATABASE_TYPE": "postgres",
"VIKUNJA_DATABASE_USER": "tipi",
"VIKUNJA_DATABASE_DATABASE": "vikunja",
"VIKUNJA_SERVICE_JWTSECRET": "${VIKUNJA_SERVICE_SECRET}",
"VIKUNJA_SERVICE_PUBLICURL": "${APP_PROTOCOL:-http}://${APP_DOMAIN}/"
},
"dependsOn": {
"vikunja-db": {
"condition": "service_healthy"
}
},
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/files",
"containerPath": "/app/vikunja/files"
}
]
},
{
"name": "vikunja-db",
"image": "postgres:14",
"environment": {
"POSTGRES_PASSWORD": "${VIKUNJA_DB_PASSWORD}",
"POSTGRES_USER": "tipi",
"POSTGRES_DB": "vikunja"
},
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/db",
"containerPath": "/var/lib/postgresql/data"
}
],
"healthCheck": {
"interval": "5s",
"timeout": "5s",
"retries": 5,
"test": "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
}
}
]
}

0 comments on commit d831566

Please sign in to comment.