Add docker-compose.yml for build-on-deploy workflow
This commit is contained in:
34
README.md
34
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user