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] Docker-compose.yml Environment variables defined incorrectly #224

Open
jeffkk opened this issue Jan 31, 2025 · 2 comments
Open

[bug] Docker-compose.yml Environment variables defined incorrectly #224

jeffkk opened this issue Jan 31, 2025 · 2 comments

Comments

@jeffkk
Copy link

jeffkk commented Jan 31, 2025

Hello,
your docker-compose.yml file has Environments listed like this:

environment:
  # Only change these if you know what you're doing
  - PUID=1000
  - PGID=1000
  # Edit to match your current timezone https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  - TZ=UTC 

But Environment is expecting values like THIS in a docker-compose.yml

environment:
  # Only change these if you know what you're doing
  PUID:  1000
  PGID:  1000
  # Edit to match your current timezone https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  TZ:  UTC

So if you fill this in with the settings youre looking for based on the current docker-compose.yml, it wont actually use any of those values.

Thanks for this software! I was literally just looking at setting up calibre again yesterday, and then came across your post on reddit and this is WAY better.

@cascandaliato
Copy link

Both formats are valid.

From https://github.com/compose-spec/compose-spec/blob/main/spec.md#environment

environment can use either an array or a map

@jeffkk
Copy link
Author

jeffkk commented Feb 1, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants