Rqlited service does not start in docker service.
When I use the docker definition of the 4.5.0 version with my own docker-entrypoint.sh with this content
#!/bin/bash
if [ "x" == "x${JOIN_ADRESS}" ]; then
exec rqlited -http-addr ${HOSTNAME}:4001 /rqlite/file/data
else
exec rqlited -http-addr ${HOSTNAME}:4001 -join http://${JOIN_ADRESS}:4001 /rqlite/file/data
fi
and when I launch it with this compose file whith the cmd docker stack deploy -c docker-compose.yml rqlite
version: "3.3"
networks:
rqlite:
services:
rqlite1:
image: sginer/rqlite:4.5.0
environment:
NODE_ID: "1"
HOSTNAME: "rqlite1"
networks:
- rqlite
rqlite2:
image: sginer/rqlite:4.5.0
environment:
NODE_ID: "2"
HOSTNAME: "rqlite2"
JOIN_ADRESS: "rqlite1"
networks:
- rqlite
rqlite3:
image: sginer/rqlite:4.5.0
environment:
NODE_ID: "3"
HOSTNAME: "rqlite3"
JOIN_ADRESS: "rqlite1"
networks:
- rqlite
rqlite is unable to elect leader and to start !