Node.js/Express API server that connects to PostgreSQL via environment variables. Includes health check, table listing, row queries, and raw SQL endpoint. Designed for deployment in Coolify alongside the snakkimo PostgreSQL container. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
11 lines
277 B
Plaintext
11 lines
277 B
Plaintext
# PostgreSQL connection (set these in Coolify as environment variables)
|
|
DB_HOST=your-postgres-service-name # In Coolify: der interne Service-Name des PostgreSQL-Containers
|
|
DB_PORT=5432
|
|
DB_NAME=snakkimo
|
|
DB_USER=postgres
|
|
DB_PASSWORD=your-password
|
|
DB_SSL=false
|
|
|
|
# API
|
|
PORT=3000
|