Yet another url shortener, but this time themed around Link from Legend of Zelda!!
To pull the latest image:
Create docker-compose.yml:
services:
app:
image: ghcr.io/nicosalm/link:latest
ports:
- "${PORT:-3000}:3000"
environment:
- DATABASE_URL=/app/data/prod.db
- AUTH_PASSWORD=${AUTH_PASSWORD}
- ORIGIN=${ORIGIN}
volumes:
- ./data:/app/data
restart: unless-stoppedCreate .env:
AUTH_PASSWORD=your_password
ORIGIN=https://yourdomain.com
(Optional) Set a different port:
PORT=8080
Then run:
docker compose up -dDatabase initializes on first request. Data persists in ./data/prod.db.
Update with:
docker compose pull && docker compose up -d