Added productivity stack

This commit is contained in:
2023-11-20 14:43:55 -05:00
parent fb897793d7
commit 70f1db60d0
2 changed files with 32 additions and 0 deletions

3
env/.productivity.env vendored Normal file
View File

@@ -0,0 +1,3 @@
NEXTAUTH_SECRET=VERY_SENSITIVE_SECRET
NEXTAUTH_URL=http://localhost:3000
POSTGRES_PASSWORD=YOUR_POSTGRES_PASSWORD

29
productivity.yaml Normal file
View File

@@ -0,0 +1,29 @@
version: "3.5"
services:
lw-postgres:
image: postgres
restart: always
volumes:
- /portainer/linkwarden/pgdata:/var/lib/postgresql/data
networks:
- nginx
hostname: lw-postgres
linkwarden:
env_file: .env
environment:
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres
restart: always
image: ghcr.io/linkwarden/linkwarden:latest
ports:
- 3002:3000
volumes:
- /portainer/linkwarden/data:/data/data
depends_on:
- lw-postgres
networks:
- nginx
hostname: linkwarden
networks:
nginx:
external: true