Skip to content

Commit

Permalink
Merge pull request #358 from charles7668/master
Browse files Browse the repository at this point in the history
[doc] Update README to add instructions for running the Docker image using docker-compose
  • Loading branch information
q191201771 authored Aug 20, 2024
2 parents 8b509a0 + 517e407 commit 6393d59
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,39 @@ $docker build -t lal .
$docker run -it -p 1935:1935 -p 8080:8080 -p 4433:4433 -p 5544:5544 -p 8083:8083 -p 8084:8084 -p 30000-30100:30000-30100/udp lal /lal/bin/lalserver -c /lal/conf/lalserver.conf.json
```

option 3, Use docker-compose

Create a `docker-compose.yml` file with the following content:

```yaml
version: "3.9"
services:
lalserver:
image: q191201771/lal
container_name: lalserver
ports:
- "1935:1935"
- "8080:8080"
- "4433:4433"
- "5544:5544"
- "8083:8083"
- "8084:8084"
- "30000-30100:30000-30100/udp"
command: /lal/bin/lalserver -c /lal/conf/lalserver.conf.json
```
Run the following command to start the service:
```bash
docker-compose up
```

Or run it in the background with:

```bash
docker-compose up -d
```

## Using

Running lalserver:
Expand Down

0 comments on commit 6393d59

Please sign in to comment.