diff --git a/env/.productivity.env b/env/.productivity.env new file mode 100644 index 0000000..51501a6 --- /dev/null +++ b/env/.productivity.env @@ -0,0 +1,3 @@ +NEXTAUTH_SECRET=VERY_SENSITIVE_SECRET +NEXTAUTH_URL=http://localhost:3000 +POSTGRES_PASSWORD=YOUR_POSTGRES_PASSWORD \ No newline at end of file diff --git a/productivity.yaml b/productivity.yaml new file mode 100644 index 0000000..2d34455 --- /dev/null +++ b/productivity.yaml @@ -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 \ No newline at end of file