Skip to content

[Bug]: Magic environment variables don't generate passwords #4646

Open
@tobidope

Description

Error Message and Logs

Image

Steps to Reproduce

  1. Add docker-compose.yaml with magic environment variables
services:
  miniflux:
    image: "miniflux/miniflux:latest"
    expose:
      - "8080"
    depends_on:
      db:
        condition: service_healthy
    environment:
      - "DATABASE_URL=postgres://miniflux:${SERVICE_PASSWORD_DB}@db/miniflux?sslmode=disable"
      - ADMIN_USERNAME=admin
      - ADMIN_PASSWORD=${SERVICE_PASSWORD_MINIFLUX}
  db:
    image: "postgres:17-alpine"
    environment:
      - POSTGRES_USER=miniflux
      - POSTGRES_PASSWORD=${SERVICE_PASSWORD_DB}
      - POSTGRES_DB=miniflux
    volumes:
      - "miniflux-db:/var/lib/postgresql/data"
volumes:
  miniflux-db:
  1. Expect environment variables to be filled with a random password like documented in https://coolify.io/docs/knowledge-base/docker/compose#coolifys-magic-environment-variables
  2. Variables are empty, the database doesn't start

Example Repository URL

No response

Coolify Version

v4.0.0-beta.379

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04.1 LTS

Additional Information

I'm using the image provided by Hetzner in a cax21 server (arm64)

Activity

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

Metadata

Assignees

No one assigned

    Labels

    🐛 BugReported issues that need to be reproduced by the team.🔍 TriageIssues that need assessment and prioritization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions