From 517e407c3bf340e8e0dd39ce815ab6a5233db830 Mon Sep 17 00:00:00 2001 From: charles Date: Tue, 20 Aug 2024 12:03:21 +0800 Subject: [PATCH] Update README to add instructions for running the Docker image using Docker Compose. --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index edad6354..ce7fda07 100644 --- a/README.md +++ b/README.md @@ -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: