git clone https://github.com/jnslr/WebpushService.git
cd WebpushService/PushService/ && docker build . -t jnslr/push-service
docker volume create pushservice_data
docker run -d --name PushService -v pushservice_data:/config --restart=unless-stopped jnslr/push-service
docker cp ~/config.yml PushService:/config
git pull
docker build . -t jnslr/push-service
docker container stop PushService && docker container rm PushService && docker run -d --name PushService -v pushservice_data:/config --restart=unless-stopped jnslr/push-service
---
version: '3'
services:
pushservice:
image: jnslr/push-service:latest
container_name: pushservice
restart: unless-stopped
volumes:
- data:/config
volumes:
data:
- Publish to topic
pushservice
{
"title": "Hello",
"options": {
"timestamp": 0,
"icon": "data:image/png;base64,iVBORw0",
"actions": [],
"body": "Hello World"
}
}