51 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| created: 2024-12-03T00:20:41.000Z
 | |
| type: note
 | |
| updated: 2024-12-03T00:20:41.000Z
 | |
| ---
 | |
| 
 | |
| # Linkwarden
 | |
| 
 | |
| - [installation](https://docs.linkwarden.app/self-hosting/installation)
 | |
| - [.env.sample](https://github.com/linkwarden/linkwarden/blob/main/.env.sample)
 | |
| - [Linkwarden: How to Deploy a Self-Hosted Collaborative Bookmark Manager in Docker](https://www.youtube.com/watch?v=91zwHPmoX6c)
 | |
| 
 | |
| ```bash 1733184881543 = 638687816815430000 = Mon Dec 02 2024 17:14:41 GMT-0700 (Mountain Standard Time)
 | |
| cd /tmp
 | |
| git clone https://github.com/linkwarden/linkwarden.git
 | |
| cd linkwarden
 | |
| cp .env.sample .env
 | |
| nano .env
 | |
| ```
 | |
| 
 | |
| ```conf 1733185015546 = 638687818155460000 = Mon Dec 02 2024 17:16:55 GMT-0700 (Mountain Standard Time)
 | |
| NEXTAUTH_URL=http://localhost:3000/api/v1/auth
 | |
| NEXTAUTH_SECRET=VERY_SENSITIVE_SECRET
 | |
| POSTGRES_PASSWORD=CUSTOM_POSTGRES_PASSWORD
 | |
| ```
 | |
| 
 | |
| 
 | |
| ```yaml 1733185128934 = 638687819289340000 = Mon Dec 02 2024 17:18:48 GMT-0700 (Mountain Standard Time)
 | |
| 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
 | |
| ```
 |