commit 14ea341370fdbfdbfc3c1e11d2c30764959f19f7 Author: Edgar P. Burkhart Date: Fri May 16 15:29:49 2025 +0200 Add initial Docker configuration files for Linkwarden setup diff --git a/README.md b/README.md new file mode 100644 index 0000000..dddeb8a --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# Docker compose file for Linkwarden + +Docker-compose file to be used with Linkwarden. + +## Base environment +``` +PORT= +POSTGRES_PASSWORD= +``` + +## OIDC +``` +NEXT_PUBLIC_AUTHENTIK_ENABLED=true +AUTHENTIK_CUSTOM_NAME= +AUTHENTIK_ISSUER= +AUTHENTIK_CLIENT_ID= +AUTHENTIK_CLIENT_SECRET= +``` \ No newline at end of file diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..4bf47dc --- /dev/null +++ b/compose.yaml @@ -0,0 +1,28 @@ +services: + postgres: + image: postgres:16-alpine + env_file: stack.env + restart: always + volumes: + - /docker/linkwarden/pgdata:/var/lib/postgresql/data + linkwarden: + env_file: stack.env + environment: + - DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres + restart: always + # build: . # uncomment to build from source + image: ghcr.io/linkwarden/linkwarden:latest # comment to build from source + ports: + - ${PORT-3000}:3000 + volumes: + - /docker/linkwarden/data:/data/data + depends_on: + - postgres + - meilisearch + meilisearch: + image: getmeili/meilisearch:v1.12.8 + restart: always + env_file: + - stack.env + volumes: + - /docker/linkwarden/meili_data:/meili_data diff --git a/stack.env b/stack.env new file mode 100644 index 0000000..e69de29