Skip to content

Commit

Permalink
feat: ✨ add docker-compose.yml and update README (#74)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Koerber <[email protected]>
Co-authored-by: Rob van der Leek <[email protected]>
  • Loading branch information
3 people authored Jan 9, 2024
1 parent a2b682d commit 62164aa
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,31 @@ directory outside the container, for example:
docker run -v /home/<USERNAME>/.local/share/mudslide:/usr/src/app/cache mudslide login
```

## Docker Compose

If you chose to use `docker-compose` instead of `docker` you can build the
Docker image using the supplied `docker-compose.yml` file (which in turn
depends on the supplied `Dockerfile`):

```shell
docker-compose build
```

Test if the build was successful:

```shell
docker-compose run mudslide
```

Since Mudslide keeps authentication state on disk you need to mount a state
directory outside the container, for example in `~/.local/share/mudslide`:

See respective lines in `docker-compose.yml`
```yaml
volumes:
- ~/.local/share/mudslide:/usr/src/app/cache
```
# Usage
Available commands and options can be listed with `--help` flag:
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '2.2'

services:

mudslide:
build: ./
network_mode: host
volumes:
- ~/.local/share/mudslide:/usr/src/app/cache
container_name: mudslide

0 comments on commit 62164aa

Please sign in to comment.