Create a directory for the slave container and navigate to it:
mkdir -p /opt/smokeping-slave && cd /opt/smokeping-slave
Create a docker-compose.yaml file in the slave directory:
cat > /opt/smokeping-slave/docker-compose.yaml << EOF
name: smokeping-slave
services:
smokeping-slave:
image: showfom/smokeping-slave:latest
restart: always
container_name: smokeping-slave
environment:
- SMOKEPING_MASTER_URL=https://example.com/smokeping/smokeping.fcgi.dist
- SMOKEPING_SHARED_SECRET=YOURSECRET
- SMOKEPING_SLAVE_NAME=slavehost1
healthcheck:
test: ["CMD-SHELL", "ps aux | grep smokeping | grep -v grep || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
network_mode: host
EOF
Then run the following command to start the slave container:
docker compose up -d
We use network_mode: host to allow the slave container to access both IPv4 and IPv6 network.
Content type
Image
Digest
sha256:e4db4b34e…
Size
95.3 MB
Last updated
over 1 year ago
docker pull showfom/smokeping-slave