Updates primary compose to use sockets database access

This commit is contained in:
2026-07-01 08:28:06 +00:00
parent d2ab2240d5
commit 78dde4fd0a
+5 -1
View File
@@ -10,6 +10,7 @@ services:
POSTGRES_PASSWORD: postgres
volumes:
- pgdata:/var/lib/postgresql/data
- pgsocket:/var/run/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
@@ -24,11 +25,13 @@ services:
dockerfile: Dockerfile
restart: unless-stopped
environment:
KMTN_DATABASE_URL: postgresql+asyncpg://postgres:postgres@db:5432/kmountain
KMTN_DATABASE_URL: >-
postgresql+asyncpg://postgres:postgres@/kmountain?host=/var/run/postgresql
KMTN_CORS_ORIGINS: '["http://localhost:4200", "http://localhost"]'
ports:
- "8000:8000"
volumes:
- pgsocket:/var/run/postgresql
- logs:/logs
depends_on:
db:
@@ -51,4 +54,5 @@ services:
volumes:
pgdata:
pgsocket:
logs: