Add initial Docker configuration files for Linkwarden setup
This commit is contained in:
commit
14ea341370
3 changed files with 46 additions and 0 deletions
18
README.md
Normal file
18
README.md
Normal file
|
@ -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=
|
||||||
|
```
|
28
compose.yaml
Normal file
28
compose.yaml
Normal file
|
@ -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
|
0
stack.env
Normal file
0
stack.env
Normal file
Reference in a new issue