Skip to content

Commit

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

* fix syntax
  • Loading branch information
Lancelot-Enguerrand authored Dec 15, 2024
1 parent a9f0575 commit 989f8e3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/linkwarden/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"port": 8199,
"available": true,
"exposable": true,
"dynamic_config": true,
"id": "linkwarden",
"tipi_version": 27,
"tipi_version": 28,
"version": "2.8.4",
"categories": ["data"],
"description": "A self-hosted, open-source collaborative bookmark manager to collect, organize and archive webpages.",
Expand Down Expand Up @@ -36,5 +37,5 @@
],
"supported_architectures": ["arm64", "amd64"],
"created_at": 1691943801422,
"updated_at": 1733016079000
"updated_at": 1734113973098
}
38 changes: 38 additions & 0 deletions apps/linkwarden/docker-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"services": [
{
"name": "linkwarden",
"image": "ghcr.io/linkwarden/linkwarden:v2.8.4",
"isMain": true,
"internalPort": 3000,
"environment": {
"DATABASE_URL": "postgresql://tipi:${LINKWARDEN_DB_PASSWORD}@linkwarden-db:5432/linkwarden",
"NEXTAUTH_SECRET": "${LINKWARDEN_NEXTAUTH_SECRET}",
"NEXTAUTH_URL": "${APP_PROTOCOL:-http}://${APP_DOMAIN}/api/v1/auth",
"NEXT_PUBLIC_DISABLE_REGISTRATION": "${LINKWARDEN_NEXT_PUBLIC_DISABLE_REGISTRATION}"
},
"dependsOn": ["linkwarden-db"],
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/linkwarden",
"containerPath": "/data/data"
}
]
},
{
"name": "linkwarden-db",
"image": "postgres:16-alpine",
"environment": {
"POSTGRES_USER": "tipi",
"POSTGRES_PASSWORD": "${LINKWARDEN_DB_PASSWORD}",
"POSTGRES_DB": "linkwarden"
},
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/postgres",
"containerPath": "/var/lib/postgresql/data"
}
]
}
]
}

0 comments on commit 989f8e3

Please sign in to comment.