Open matthias-hoste opened 1 day ago
Can you post your docker-compose?
`version: "3"
volumes: mysql_data: romm_resources: romm_redis_data:
services: romm: image: rommapp/romm:latest container_name: romm restart: unless-stopped environment:
80:8080 deploy: placement: constraints:
romm-db: image: mariadb:latest # if you experience issues, try: linuxserver/mariadb:latest container_name: romm-db restart: unless-stopped environment:
And you've set both DB_PASSWD and MYSQL_PASSWORD to something, since they can't be empty?
Yeah
Hmmm the code with that check should pass in this case, unless you have a whitespace after the =
?
if not DB_USER or not DB_PASSWD:
log.critical(
"Missing database credentials, check your environment variables!"
)
sys.exit(3)
Nope, added the password directly after the =. It's really weird. It's as if the env vars are not passed at all
any chance it has to do with indentation, make sure the yaml is correct by pasting it in a web verifier?
RomM version latest
Describe the bug I use the default docker-compose.yml example. First with changes to use my already running mysql server which gave the error that it cant find the database credentials. Then I tried the example yml directly with it's included mysql server which also gave this error. I'm using portainer
To Reproduce Create a new stack in portainer, use example docker yml
Expected behavior Starts up fine