Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docker/swarm/stacks/oncall/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,24 @@ This stack defines all the services for the housekeeping apps. See comments in t
- Mount `/home/freecodecamp/.docker:/root/.docker` as **writable** (buildx needs write access)
- Ensure `/home/freecodecamp/.docker/buildx/` directory exists on manager node

**Google Chat Notifications:**
- Create webhook in Google Chat: Space menu → Apps & integrations → Webhooks → Add webhook
- Set environment variable with webhook URL:
```bash
export GANTRY_GCHAT_WEBHOOK_URL="gchat://workspace/key/token"
# Or use direct URL:
export GANTRY_GCHAT_WEBHOOK_URL="https://chat.googleapis.com/v1/spaces/..."
```

**Deployment:**
```bash
# Ensure correct ownership and permissions
sudo chown -R freecodecamp:freecodecamp /home/freecodecamp/.docker
sudo chmod -R u+w /home/freecodecamp/.docker

# Set notification webhook (optional)
export GANTRY_GCHAT_WEBHOOK_URL="gchat://workspace/key/token"

# Deploy stack
docker stack deploy -c docker/swarm/stacks/oncall/stack-oncall.yml oncall
```
Expand Down
3 changes: 3 additions & 0 deletions docker/swarm/stacks/oncall/stack-oncall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ services:
- "GANTRY_ROLLBACK_ON_FAILURE=true"
- "GANTRY_UPDATE_TIMEOUT_SECONDS=300"
- "GANTRY_UPDATE_OPTIONS=--with-registry-auth"
- "GANTRY_NOTIFICATION_APPRISE_URL=${GANTRY_GCHAT_WEBHOOK_URL}"
- "GANTRY_NOTIFICATION_CONDITION=on-change"
- "GANTRY_NOTIFICATION_TITLE=Gantry Auto-Update"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/home/freecodecamp/.docker:/root/.docker"
Expand Down