docker-signal-bot
docker-signal-bot copied to clipboard
Docker image to send messages periodically via the Signal messenger using crontab
Setup account
- Register account:
signal-cli -u <phone number> register --voice
Format of<phone number>
(w/o spaces):+<country code><phone number>
- Wait for the phone call to get
<code>
- Verify account:
signal-cli -u <phone number> verify <code>
Now the key material is stored in the home directory - Copy config folder for reuse with docker:
cp -R ~/.local/share/signal-cli/ ./docker/signal_config
Setup docker-signal-bot
- Copy crontab sample:
cp ./docker/crontab.sample ./docker/crontab
- Configure
./docker/crontab
as required
https://crontab.guru/ serves as a small aid - Build docker container:
docker-compose build --no-cache
- Start docker container:
docker-compose up