Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tobidope opened this issue Dec 22, 2024 · 0 comments
Open

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

tobidope opened this issue Dec 22, 2024 · 0 comments
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.

Comments

@tobidope
Copy link

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)

@tobidope tobidope added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.
Projects
None yet
Development

No branches or pull requests

1 participant