-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
use string instead of bool value in docker-copose environment #267
Conversation
services.satisfactory-server.environment.ROOTLESS contains false, which is an invalid type, it should be a string, number, or a null
Are you experiencing this as an issue on your end? Docker compose has no issues with these |
Its probably just a compatibility thingi, cause I use a rather old version of docker-compose: making this a string "should" make it work on older and newer version, but you better double check if the params get applied correctly if you re using a newer version of docker-compose |
I think yaml does not known the difference between strings and bool or am I wrong? |
It should be a string as |
Thanks! |
This unfortunately isn't correct, you're mixing up things. The environment:
- ROOTLESS='false'
- STEAMBETA='false' where the whole line is just a YAML string (everything behine the "- "). On the contrary there also are environment variables as YAML objects/keys: environment:
ROOTLESS: "false"
STEAMBETA: "false" where there are YAML key-value relations.
This is where that applies and "false" must be put into quotes. Generally speaking, Docker can handle both variants. The command environment:
ROOTLESS: '''false'''
STEAMBETA: '''false''' (wrongly escaped boolean strings) Prior to the PR it was: environment:
ROOTLESS: "false"
STEAMBETA: "false" Here Docker automatically parsed the first variant (where the whole line is a single string) and output the configuration in the format of the second variant (with correctly escaped "false"). |
Thanks for the correction @voruti. That's what I thought I remembered, but I hastily merged this while dealing with other 1.0 things. It was only in the docker-compose.yml file, while most people copy from the README :) My apologies for not reviewing this properly myself |
services.satisfactory-server.environment.ROOTLESS contains false, which is an invalid type, it should be a string, number, or a null
services.satisfactory-server.environment.STEAMBETA contains false, which is an invalid type, it should be a string, number, or a null