My compose editor is in Portainer and mqdocker in part of a stack.
The syntax I use for the environment part is slightly different and I wonder if that could be part of the problem?
The other docker part of the stack is running fine.
Here is my redacted code :
mqdockerup:
image: micrib/mqdockerup:latest
container_name: mqdockerup
environment:
- PUID=xxx
- PGID=xxx
- TZ=zone
- MAIN_INTERVAL:5m
- MQTT_CONNECTIONURI:mqtt://myMQTT_IP:1883
- MQTT_USERNAME:username
- MQTT_PASSWORD:password
# - ACCESSTOKENS_GITHUB: ""
volumes:
- /var/run/docker.sock:/var/run/docker.sock # This is required to access the docker API
- /volume1/docker/mqdockerup/:/app/data/ # This is required to store the data (database.db)
network_mode: xxx
restart: unless-stopped
My compose editor will not work without the - in front of the variables names or with quotes around the values as far as I can see.
To be clear the standalone version was installed on a computer and not on the NAS, so I suspect that is why it cannot connect to the docker.
In any case, I prefer to only use the docker if that is possible so I am hoping it is simply a configuration issue.
I’m using the same, Portainer compose editor in a stack and have shown my code. Yours is different in several ways:
Version is not defined ( environment and content attributes are available with Docker Compose version 2.23.1 and later.)
Your environment variables start with a "- " , not sure if that matters
I see some undocumented variables that I do not know (e.g. PUID)
your values are not between double quotes (e.g. MQTT_CONNECTIONURI)
Would recommend to start a new stack to test just running the MQdockerup image in portainer with the compose coe I provided, with you password and username etc added. See also here a link for the official compose example:
Just found this and had some issues with setting up, after a while I did manage to get it running with the “-” syntax as all my other compose containers. Just wanted to let you know that it does work, you need to follow syntax though, so replace “:” with “=” and all good.
would really like to get this tool running on my system.
So far i’ve been able to get the container running, and I’m getting update notifications in HA over mqtt. But when i try to update containers, I simply get a error in mqdockerup logs for each an every container i try to update