updated postgres container name and url

This commit is contained in:
2025-03-29 23:00:44 -05:00
parent f856850ad5
commit 8b0af53c73
2 changed files with 4 additions and 7 deletions

View File

@@ -1,10 +1,6 @@
NEXTAUTH_URL=http://localhost:3232/api/v1/auth NEXTAUTH_URL=http://localhost:3232/api/v1/auth
NEXTAUTH_SECRET=pheimoo9roozahghaithais4Ooxiexahrie4ieph NEXTAUTH_SECRET=pheimoo9roozahghaithais4Ooxiexahrie4ieph
# Manual installation database settings
# Example: DATABASE_URL=postgresql://user:password@localhost:5432/linkwarden
DATABASE_URL=
# Docker installation database settings # Docker installation database settings
POSTGRES_PASSWORD=siel9Oogoh8sheeghohqu7thaNoo6cet9eeyoJie POSTGRES_PASSWORD=siel9Oogoh8sheeghohqu7thaNoo6cet9eeyoJie

View File

@@ -1,5 +1,6 @@
services: services:
postgres: linkwarden-postgres:
container_name: linkwarden-postgres
image: postgres:16-alpine image: postgres:16-alpine
env_file: .env env_file: .env
restart: always restart: always
@@ -13,7 +14,7 @@ services:
container_name: linkwarden container_name: linkwarden
env_file: .env env_file: .env
environment: environment:
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres - DATABASE_URL=postgresql://linkwarden-postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres
restart: always restart: always
ports: ports:
- 3232:3000 - 3232:3000
@@ -23,7 +24,7 @@ services:
volumes: volumes:
- ./data:/data/data - ./data:/data/data
depends_on: depends_on:
- postgres - linkwarden-postgres
networks: networks:
linkwarden: linkwarden: