From 8b0af53c730bb32b0c900719f2feec726a7ab52c Mon Sep 17 00:00:00 2001 From: akanealw Date: Sat, 29 Mar 2025 23:00:44 -0500 Subject: [PATCH] updated postgres container name and url --- linkwarden/.env | 4 ---- linkwarden/compose.yml | 7 ++++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/linkwarden/.env b/linkwarden/.env index a1cf18e..8e5045d 100644 --- a/linkwarden/.env +++ b/linkwarden/.env @@ -1,10 +1,6 @@ NEXTAUTH_URL=http://localhost:3232/api/v1/auth NEXTAUTH_SECRET=pheimoo9roozahghaithais4Ooxiexahrie4ieph -# Manual installation database settings -# Example: DATABASE_URL=postgresql://user:password@localhost:5432/linkwarden -DATABASE_URL= - # Docker installation database settings POSTGRES_PASSWORD=siel9Oogoh8sheeghohqu7thaNoo6cet9eeyoJie diff --git a/linkwarden/compose.yml b/linkwarden/compose.yml index 48ca0b4..1d7f157 100644 --- a/linkwarden/compose.yml +++ b/linkwarden/compose.yml @@ -1,5 +1,6 @@ services: - postgres: + linkwarden-postgres: + container_name: linkwarden-postgres image: postgres:16-alpine env_file: .env restart: always @@ -13,7 +14,7 @@ services: container_name: linkwarden env_file: .env environment: - - DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres + - DATABASE_URL=postgresql://linkwarden-postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres restart: always ports: - 3232:3000 @@ -23,7 +24,7 @@ services: volumes: - ./data:/data/data depends_on: - - postgres + - linkwarden-postgres networks: linkwarden: