Skip to content

Commit

Permalink
Add dynamic compose for halo (#6095)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancelot-Enguerrand authored Dec 23, 2024
1 parent 0a9ac23 commit bf99aec
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/halo/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"name": "Halo",
"available": true,
"exposable": true,
"dynamic_config": true,
"port": 8092,
"id": "halo",
"tipi_version": 39,
"tipi_version": 40,
"version": "2.20.12",
"description": "Halo is a powerful and easy-to-use open source website building tool.",
"short_desc": "Halo - Open source website building tool.",
Expand All @@ -28,5 +29,5 @@
],
"supported_architectures": ["arm64", "amd64"],
"created_at": 1691943801422,
"updated_at": 1734430834000
"updated_at": 1734908291311
}
57 changes: 57 additions & 0 deletions apps/halo/docker-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"services": [
{
"name": "halo",
"image": "halohub/halo:2.20.12",
"isMain": true,
"internalPort": 8090,
"dependsOn": {
"halodb": {
"condition": "service_healthy"
}
},
"volumes": [
{
"hostPath": "${APP_DATA_DIR}",
"containerPath": "/root/.halo2"
}
],
"command": [
"--spring.r2dbc.url=r2dbc:pool:postgresql://halodb/halo",
"--spring.r2dbc.username=halo",
"--spring.r2dbc.password=${HALO_DATABASE_PASSWORD}",
"--spring.sql.init.platform=postgresql",
"--halo.external-url=${HALO_EXTERNAL_URL}"
],
"healthCheck": {
"interval": "30s",
"timeout": "5s",
"retries": 5,
"startPeriod": "30s",
"test": "curl -f http://localhost:8090/actuator/health/readiness"
}
},
{
"name": "halodb",
"image": "postgres:latest",
"environment": {
"POSTGRES_PASSWORD": "${HALO_DATABASE_PASSWORD}",
"POSTGRES_USER": "halo",
"POSTGRES_DB": "halo",
"PGUSER": "halo"
},
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/db",
"containerPath": "/var/lib/postgresql/data"
}
],
"healthCheck": {
"interval": "10s",
"timeout": "5s",
"retries": 5,
"test": "pg_isready"
}
}
]
}

0 comments on commit bf99aec

Please sign in to comment.