Skip to content

Commit

Permalink
Add dynamic compose for teddit
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancelot-Enguerrand committed Dec 9, 2024
1 parent 5a284ca commit 283ad4a
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/teddit/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"available": true,
"deprecated": true,
"exposable": true,
"dynamic_config": true,
"port": 8124,
"id": "teddit",
"tipi_version": 2,
"tipi_version": 3,
"version": "latest",
"categories": ["social"],
"description": "A free and open source alternative Reddit front-end focused on privacy. Inspired by the Nitter project.",
Expand All @@ -16,5 +17,5 @@
"form_fields": [],
"supported_architectures": ["arm64", "amd64"],
"created_at": 1691943801422,
"updated_at": 1723566285000
"updated_at": 1733761319987
}
54 changes: 54 additions & 0 deletions apps/teddit/docker-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"services": [
{
"name": "teddit",
"image": "teddit/teddit:latest",
"isMain": true,
"internalPort": 8080,
"environment": {
"REDIS_HOST": "teddit-redis",
"DOMAIN": "${APP_DOMAIN}",
"THEME": "dark",
"HTTPS_ENABLED": "false",
"REDIRECT_HTTP_TO_HTTPS": "false",
"REDIRECT_WWW": "false"
},
"dependsOn": [
"teddit-redis"
],
"healthCheck": {
"test": [
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:8080/about"
],
"interval": "1m",
"timeout": "3s",
"retries": 3
}
},
{
"name": "teddit-redis",
"image": "redis:alpine",
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/redis",
"containerPath": "/data"
}
],
"healthCheck": {
"test": [
"CMD",
"redis-cli",
"ping"
],
"interval": "1s",
"timeout": "3s",
"retries": 30
}
}
]
}

0 comments on commit 283ad4a

Please sign in to comment.