Skip to content

Commit

Permalink
Add dynamic compose for koillection (#5986)
Browse files Browse the repository at this point in the history
* Add dynamic compose for koillection

* fix syntax (one line for dependsOn)
  • Loading branch information
Lancelot-Enguerrand authored Dec 15, 2024
1 parent 8694da4 commit a9f0575
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/koillection/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"available": true,
"port": 8050,
"exposable": true,
"dynamic_config": true,
"id": "koillection",
"description": "Koillection is a self-hosted service allowing users to manage any kind of collections.",
"tipi_version": 18,
"tipi_version": 19,
"version": "1.5.16",
"categories": ["utilities"],
"short_desc": "Koillection allow you to manage any kind of collections.",
Expand All @@ -31,5 +32,5 @@
}
],
"created_at": 1691943801422,
"updated_at": 1732921300000
"updated_at": 1734113945434
}
50 changes: 50 additions & 0 deletions apps/koillection/docker-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"services": [
{
"name": "koillection",
"image": "koillection/koillection:1.5.16",
"isMain": true,
"internalPort": 80,
"environment": {
"APP_DEBUG": "0",
"APP_ENV": "prod",
"HTTPS_ENABLED": "{APP_EXPOSED}",
"UPLOAD_MAX_FILESIZE": "20M",
"PHP_MEMORY_LIMIT": "512M",
"PHP_TZ": "${TZ}",
"CORS_ALLOW_ORIGIN": "*",
"JWT_SECRET_KEY": "%kernel.project_dir%/config/jwt/private.pem",
"JWT_PUBLIC_KEY": "%kernel.project_dir%/config/jwt/public.pem",
"DB_DRIVER": "pdo_pgsql",
"DB_NAME": "koillection",
"DB_HOST": "koillection-db",
"DB_PORT": "5432",
"DB_USER": "{KOILLECTION_DB_USER}",
"DB_PASSWORD": "{KOILLECTION_DB_PASSWORD}",
"DB_VERSION": "15"
},
"dependsOn": ["koillection-db"],
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/uploads",
"containerPath": "/uploads"
}
]
},
{
"name": "koillection-db",
"image": "postgres:15",
"environment": {
"POSTGRES_DB": "koillection",
"POSTGRES_USER": "{KOILLECTION_DB_USER}",
"POSTGRES_PASSWORD": "{KOILLECTION_DB_PASSWORD}"
},
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/volumes/postgresql",
"containerPath": "/var/lib/postgresql/data"
}
]
}
]
}

0 comments on commit a9f0575

Please sign in to comment.