1.5 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.5 KiB
		
	
	
	
	
	
	
	
created, type, updated
| created | type | updated | 
|---|---|---|
| 2024-12-03T00:20:41.000Z | note | 2024-12-03T00:20:41.000Z | 
Linkwarden
- installation
- .env.sample
- Linkwarden: How to Deploy a Self-Hosted Collaborative Bookmark Manager in Docker
cd /tmp
git clone https://github.com/linkwarden/linkwarden.git
cd linkwarden
cp .env.sample .env
nano .env
NEXTAUTH_URL=http://localhost:3000/api/v1/auth
NEXTAUTH_SECRET=VERY_SENSITIVE_SECRET
POSTGRES_PASSWORD=CUSTOM_POSTGRES_PASSWORD
version: "3.5"
services:
  postgres:
    image: postgres:16-alpine
    env_file: .env
    restart: always
    volumes:
      - ./pgdata:/var/lib/postgresql/data
  linkwarden:
    env_file: .env
    environment:
      - DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres
    restart: always
    # build: . # uncomment this line to build from source
    image: ghcr.io/linkwarden/linkwarden:latest # comment this line to build from source
    ports:
      - 3000:3000
    volumes:
      - ./data:/data/data
    depends_on:
      - postgres