1# Docker Compose Template
2
3> Self-host OpenClaw with Docker Compose. Full control.
4
5## Quick Start
6
7
8git clone https://github.com/openclaw/docker-template
9cd docker-template
10cp .env.example .env
11# Edit .env with your API keys
12docker compose up -d
13
14
15## What you get
16
17- OpenClaw gateway in a container
18- Persistent data via Docker volumes
19- Optional Postgres + Redis services
20- Easy backup and migration
21
22## docker-compose.yml
23
24
25services:
26 openclaw:
27 image: openclaw/openclaw:latest
28 ports:
29 - "3000:3000"
30 volumes:
31 - openclaw-data:/data/.openclaw
32 env_file:
33 - .env
34 restart: unless-stopped
35
36volumes:
37 openclaw-data:
38
39
40## Requirements
41
42- Docker and Docker Compose installed
43- 1GB RAM minimum
44- API keys for your LLM provider
45
46## Updating
47
48
49docker compose pull
50docker compose up -d
51
52
53## Tags
54
55`docker` `self-hosted` `compose` `template`
56