-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce295e9
commit fd2f9ec
Showing
2 changed files
with
50 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Running Soft-Serve with Docker | ||
|
||
The official Soft Serve Docker images are available at [charmcli/soft-serve][docker]. | ||
|
||
```sh | ||
docker pull charmcli/soft-serve:latest | ||
``` | ||
|
||
Here’s how you might run `soft-serve` as a container. Keep in mind that | ||
repositories are stored in the `/soft-serve` directory, so you’ll likely want | ||
to mount that directory as a volume in order keep your repositories backed up. | ||
|
||
```sh | ||
docker run -d \ | ||
--name=soft-seve \ | ||
--volume /path/to/data:/soft-serve \ | ||
--publish 23231:23231 \ | ||
--restart unless-stopped \ | ||
charmcli/soft-serve:latest | ||
``` | ||
|
||
Or by using docker-compose: | ||
|
||
```yaml | ||
--- | ||
version: "3.1" | ||
services: | ||
soft-serve: | ||
image: charmcli/soft-serve:latest | ||
container_name: soft-serve | ||
volumes: | ||
- /path/to/data:/soft-serve | ||
ports: | ||
- 23231:23231 | ||
restart: unless-stopped | ||
``` | ||
[docker]: https://hub.docker.com/r/charmcli/soft-serve | ||
*** | ||
Part of [Charm](https://charm.sh). | ||
<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge-unrounded.jpg" width="400"></a> | ||
Charm热爱开源 • Charm loves open source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters