Add initial Docker configuration files for Linkwarden setup
This commit is contained in:
commit
14ea341370
3 changed files with 46 additions and 0 deletions
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
|
Reference in a new issue