Skip to content

cli: docker-compose template publishes Postgres on 0.0.0.0:5432 with postgres/postgres while the app runs in production mode #444

Closed

Description

@antosubash

The smpy new docker template (0.0.35) generates a docker-compose.yml whose postgres service:

  • uses the hard-coded password postgres (also baked into the app's SM_DATABASE_URL), and
  • publishes 5432:5432 on all host interfaces,

while the app service is explicitly SM_ENVIRONMENT: production. Anyone who runs make docker-up on a server exposes a superuser-password Postgres to the network. It also collides with the shared dev-services Postgres on 5432.

Suggested template:

Activity

  1. antosubash commented on Oct 13, 2026

    @antosubash
    OwnerAuthor

    Fixed by #446 (merged).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions