Support env-based DB and S3 credentials #336

Closed
opened 2026-04-05 16:16:14 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @arsalanses on 12/24/2025

Hi,

It would be very helpful if Postgresus could read PostgreSQL and S3 credentials from environment variables when using Docker Compose.

This would make deployments more secure and easier to automate (CI/CD, servers, etc.), instead of hard-coding credentials in the UI.

Suggested env vars:

  • POSTGRES_HOST
  • POSTGRES_PORT
  • POSTGRES_DB
  • POSTGRES_USER
  • POSTGRES_PASSWORD
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_DEFAULT_REGION
  • S3_BUCKET
  • S3_ENDPOINT (optional)

Example:

services:
  postgresus:
    image: rostislavdugin/postgresus:latest
    environment:
      - POSTGRES_HOST=${POSTGRES_HOST}
      - POSTGRES_USER=${POSTGRES_USER}
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
      - S3_BUCKET=${S3_BUCKET}
      - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
      - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}

Thanks!

*Originally created by @arsalanses on 12/24/2025* Hi, It would be very helpful if Postgresus could read **PostgreSQL** and **S3** credentials from environment variables when using Docker Compose. This would make deployments more secure and easier to automate (CI/CD, servers, etc.), instead of hard-coding credentials in the UI. Suggested env vars: - POSTGRES_HOST - POSTGRES_PORT - POSTGRES_DB - POSTGRES_USER - POSTGRES_PASSWORD - AWS_ACCESS_KEY_ID - AWS_SECRET_ACCESS_KEY - AWS_DEFAULT_REGION - S3_BUCKET - S3_ENDPOINT (optional) Example: ```yml services: postgresus: image: rostislavdugin/postgresus:latest environment: - POSTGRES_HOST=${POSTGRES_HOST} - POSTGRES_USER=${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - S3_BUCKET=${S3_BUCKET} - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} ``` Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/databasus#336