Skip to content

Commit

Permalink
docs(readme): adds docker compose example
Browse files Browse the repository at this point in the history
  • Loading branch information
garethflowers committed Jun 6, 2024
1 parent be11ebb commit 7a8e673
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,46 @@ A simple Subversion server, using `svnserve`.

### Start a Subversion Server instance

To start a container, with data stored in `/home/svn` on the host, use the following:
To start a container, with data stored in `/home/svn` on the host, use the
following:

#### ...via `docker run`

```sh
docker run \
--name my-svn-server \
--detach \
--volume /home/svn:/var/opt/svn \
--publish 3690:3690 \
garethflowers/svn-server
--name my-svn-server \
--detach \
--volume /home/svn:/var/opt/svn \
--publish 3690:3690 \
garethflowers/svn-server
```

#### ...via `docker compose`

```sh
services:
svn:
image: garethflowers/svn-server
ports:
- 3690:3690/tcp
volumes:
- /home/svn:/var/opt/svn
```

### Creating a new SVN Repository

Use `svnadmin` within your container to create and manage repositories.

For example, to create a repository called `new-repo` in container `my-svn-server`, use the following:
For example, to create a repository called `new-repo` in container
`my-svn-server`, use the following:

```sh
docker exec -it my-svn-server svnadmin create new-repo
```

## License

* Apache Subversion is released under the [Apache License](https://www.apache.org/licenses/LICENSE-2.0).
* This image is released under the [MIT License](https://raw.githubusercontent.com/garethflowers/docker-svn-server/master/LICENSE).
- Apache Subversion is released under the
[Apache License](https://www.apache.org/licenses/LICENSE-2.0).
- This image is released under the
[MIT License](https://raw.githubusercontent.com/garethflowers/docker-svn-server/master/LICENSE).

0 comments on commit 7a8e673

Please sign in to comment.