Skip to content

Commit 25264d1

Browse files
committed
docker compose example
1 parent 78591a7 commit 25264d1

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,22 @@ docker run --name zmail \
4848
-p 3001:3001 \
4949
-v /srv/zmail/config:/config:ro \
5050
-v /srv/zmail/data:/data \
51-
ghcr.io/OWNER/REPO:latest
51+
ghcr.io/txchen/zmail:latest
52+
```
53+
54+
Equivalent `docker-compose.yml`:
55+
56+
```yaml
57+
services:
58+
zmail:
59+
image: ghcr.io/txchen/zmail:latest
60+
container_name: zmail
61+
restart: unless-stopped
62+
ports:
63+
- "3001:3001"
64+
volumes:
65+
- /srv/zmail/config:/config:ro
66+
- /srv/zmail/data:/data
5267
```
5368
5469
Set `[storage] database_dir = "/data"` in `/srv/zmail/config/zmail.toml`. The image defaults to

0 commit comments

Comments
 (0)