1# Running Soft-Serve with Docker23The 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]45```sh6docker pull charmcli/soft-serve:latest7```89Here’s how you might run `soft-serve` as a container. Keep in mind that10repositories are stored in the `/soft-serve` directory, so you’ll likely want11to mount that directory as a volume in order keep your repositories backed up.1213```sh14docker run \15 --name=soft-serve \16 --volume /path/to/data:/soft-serve \17 --publish 23231:23231 \18 --publish 23232:23232 \19 --publish 23233:23233 \20 --publish 9418:9418 \21 -e SOFT_SERVE_INITIAL_ADMIN_KEYS="YOUR_ADMIN_KEY_HERE" \22 --restart unless-stopped \23 charmcli/soft-serve:latest24```2526Or by using docker-compose:2728```yaml29---30version: "3.1"31services:32 soft-serve:33 image: charmcli/soft-serve:latest34 container_name: soft-serve35 volumes:36 - /path/to/data:/soft-serve37 ports:38 - 23231:2323139 - 23232:2323240 - 23233:2323341 - 9418:941842 environment:43 SOFT_SERVE_INITIAL_ADMIN_KEYS: "YOUR_ADMIN_KEY_HERE"44 restart: unless-stopped45```4647[docker]: https://hub.docker.com/r/charmcli/soft-serve48[ghcr]: https://github.com/charmbracelet/soft-serve/pkgs/container/soft-serve495051> **Warning**52>53> Make sure to run the image without a TTY, i.e.: do not use the `--tty`/`-t`54> flags.555657***5859Part of [Charm](https://charm.sh).6061<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge-unrounded.jpg" width="400"></a>6263Charm热爱开源 • Charm loves open source