1# Running Soft-Serve with Docker
 2
 3The official Soft Serve Docker images are available at [charmcli/soft-serve][docker]. Development and nightly builds are available at [ghcr.io/charmbracelet/soft-serve][ghcr]
 4
 5```sh
 6docker pull charmcli/soft-serve:latest
 7```
 8
 9Here’s how you might run `soft-serve` as a container.  Keep in mind that
10repositories are stored in the `/soft-serve` directory, so you’ll likely want
11to mount that directory as a volume in order keep your repositories backed up.
12
13```sh
14docker run \
15  --name=soft-seve \
16  --volume /path/to/data:/soft-serve \
17  --publish 23231:23231 \
18  --restart unless-stopped \
19  charmcli/soft-serve:latest
20```
21
22Or by using docker-compose:
23
24```yaml
25---
26version: "3.1"
27services:
28  soft-serve:
29    image: charmcli/soft-serve:latest
30    container_name: soft-serve
31    volumes:
32      - /path/to/data:/soft-serve
33    ports:
34      - 23231:23231
35    restart: unless-stopped
36```
37
38[docker]: https://hub.docker.com/r/charmcli/soft-serve
39[ghcr]: https://github.com/charmbracelet/soft-serve/pkgs/container/soft-serve
40
41***
42
43Part of [Charm](https://charm.sh).
44
45<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge-unrounded.jpg" width="400"></a>
46
47Charm热爱开源 • Charm loves open source