Add docker-compose.yml for build-on-deploy workflow

This commit is contained in:
Klaatu
2026-02-20 19:12:04 +00:00
parent 3df8a2143e
commit 2554e20e9d
2 changed files with 75 additions and 12 deletions

View File

@@ -8,25 +8,35 @@ Custom OpenClaw Gateway build for ARM64 with Google Workspace tools.
- `docker/` - Custom image build (ARM64 + gog + gcloud)
- `AGENTS.md` - Full deployment guide
## Quick Start
## Quick Start (Docker Compose)
```bash
# 1. Build the custom image
cd docker && ./build-arm64.sh
# 1. Deploy (builds fresh image automatically)
docker-compose up --build -d
# 2. Push to your registry
# 2. Copy in your Google client secret
docker cp /path/to/client_secret.json openclaw-gateway:/home/node/.openclaw/google-client-secret.json
# 3. Setup gog (Google Workspace)
docker exec -it openclaw-gateway setup-gog.sh
docker exec -it openclaw-gateway gog auth add you@gmail.com --services gmail,calendar,drive
# Rebuild and redeploy after code changes:
docker-compose up --build -d
```
## Docker Swarm (stack.yml)
If you prefer Swarm orchestration (replicas, rolling updates, placement constraints):
```bash
# Build and push first
cd docker && ./build-arm64.sh
docker tag openclaw:custom-arm64 registry.lan/openclaw:latest
docker push registry.lan/openclaw:latest
# 3. Deploy
# Then deploy
docker stack deploy -c stack.yml openclaw
# 4. Copy in your Google client secret
docker cp /path/to/client_secret.json $(docker ps -q -f name=openclaw-gateway):/home/node/.openclaw/google-client-secret.json
# 5. Setup gog (Google Workspace)
docker exec -it $(docker ps -q -f name=openclaw-gateway) setup-gog.sh
docker exec -it $(docker ps -q -f name=openclaw-gateway) gog auth add you@gmail.com --services gmail,calendar,drive
```
## Custom Image Includes