Safeline running in Docker Swarm #1103
Replies: 1 comment
-
Nevermind. I didn't notice the time stamps on the log messages. At the beginning, when the Postgres service isn't running yet, for example, the other services that depend on it throw errors. As soon as everything starts normally, it works. I tried to remove the error messages using healthchecks, but couldn't get them to run correctly. This is the compose.yaml with the correct hostname for postgres in case anyone wants to deploy Safeline in Docker Swarm.
So it was working the whole time and I tried to debug a problem that wasn't a problem for a few days. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I adapted the compose.yaml for running it in docker swarm. As soon as I deploy the stack I can see that my luigi and mgt services can't connect to my postgres service using either the hostname postgres or tasks.postgres. Also luigi can't connect to detect service.
I put the bind mounts on ceph managed through proxmox so that every host has anytime the same data.
This is my compose.yaml:
The .env file is almost the same as usual except that the variable SAFELINE_DIR is set to a ceph folder managed through proxmox so that every host always has the same data.
I run only one service of postgres and the detector because I got errors regarding sock files that couldn't be opened because one service had them already open.
Then I deploy the stack using
export $(cat .env) > /dev/null 2>&1; docker stack deploy -c compose.yaml safeline -d
Here are snippets of my logs from luigi and mgt services:
Luigi:
mgt:
Hopefully someone knows how to workaround this problem. Thank you for help.
Edit: I forgot to mention that I tried to ping the postgres service from every luigi container on every host using
ping postgres
after installing iputils-ping inside the container. On every container I got an answer from postgres without problems.Beta Was this translation helpful? Give feedback.
All reactions