Skip to content

Commit

Permalink
docs(readme): add docker run with/without config
Browse files Browse the repository at this point in the history
  • Loading branch information
anweisen committed Oct 21, 2023
1 parent 2a39666 commit 04d00da
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ A configurable socket server written in rust responding to packets via the minec

## Setup

### Docker Run

```shell
docker run -d -p 25565:25565 -v /your/path/to/conf:/app/conf -e CONFIG=conf/config.json --name just_motd anweisen/just_motd:latest
```

### Docker Compose

```yaml
Expand All @@ -26,6 +20,7 @@ services:
- CONFIG=conf/config.json
```
#### Start
```shell
Expand All @@ -38,6 +33,18 @@ docker compose up
docker compose down
```

### Docker Run

```shell
docker run -d -p 25565:25565 --name just_motd anweisen/just_motd:latest
```

#### With config

```shell
docker run -d -p 25565:25565 -v /your/path/to/conf:/app/conf -e CONFIG=conf/config.json --name just_motd anweisen/just_motd:latest
```

## Configuration

### Config File
Expand Down

0 comments on commit 04d00da

Please sign in to comment.