Files
homelab-configs/siklos/linkwarden/docker-compose.yml
T

29 lines
743 B
YAML

services:
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_PASSWORD: mysecretpassword
volumes:
- /srv/docker/linkwarden/pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
linkwarden:
image: ghcr.io/linkwarden/linkwarden:latest
restart: always
ports:
- "3015:3000"
environment:
- DATABASE_URL=postgresql://postgres:mysecretpassword@postgres:5432/postgres
- NEXTAUTH_URL=http://localhost:3000
- NEXTAUTH_SECRET=super-secret-random-string-12345
depends_on:
postgres:
condition: service_healthy