chore: Enhance database debugging setup and expand test mocks for Drizzle queries and Discord API interactions.
Some checks failed
Deploy to Production / test (push) Failing after 29s
Deploy to Production / build (push) Has been skipped
Deploy to Production / deploy (push) Has been skipped

This commit is contained in:
syntaxbullet
2026-01-30 16:12:15 +01:00
parent 7049cbfd9d
commit 9a2fc101da
10 changed files with 43 additions and 13 deletions

View File

@@ -7,13 +7,14 @@ services:
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
# Uncomment to access DB from host (for debugging/drizzle-kit studio)
# ports:
# - "127.0.0.1:${DB_PORT}:5432"
ports:
- "127.0.0.1:${DB_PORT}:5432"
volumes:
# Host-mounted to preserve existing VPS data
- ./shared/db/data:/var/lib/postgresql/data
networks:
- internal
- web
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}" ]
interval: 5s
@@ -26,7 +27,7 @@ services:
build:
context: .
dockerfile: Dockerfile
target: development # Use development stage
target: development # Use development stage
working_dir: /app
ports:
- "127.0.0.1:3000:3000"
@@ -67,8 +68,7 @@ services:
extends:
service: app
# Clear inherited ports from app and only expose studio port
ports:
!override
ports: !override
- "127.0.0.1:4983:4983"
# Override healthcheck since studio doesn't serve on port 3000
healthcheck:
@@ -91,6 +91,6 @@ networks:
volumes:
# Named volumes for node_modules caching
app_node_modules:
name: aurora_app_node_modules
name: aurora_app_node_modules
web_node_modules:
name: aurora_web_node_modules