From 097cf610e664c922c1c618b11a582bb6a1d959f8 Mon Sep 17 00:00:00 2001 From: "Leif G." <46281254+4ctiv@users.noreply.github.com> Date: Mon, 12 Aug 2024 17:06:05 +0200 Subject: Add docker-compose (further simplify docker setup) (#55) * Add docker-compose.yml Add docker compose to further simplify the setup of the docker project. This eliminates the need to specify the need for defining ports and volumes in the command and moves it to the docker-compose file instead. * Update README.md Add docker-compose command to documentation * Update README.md (docker instructions) Update md formating for docker commands (this enables one-click-copy in the github preview) --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 578a5c9..1976d39 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,18 @@ Default channel example: https://synctube.onrender.com/ - Open showed "Local" link for yourself and send "Global" link to friends ### Setup (Docker) -- As alternative, you can install Docker and run: -- `docker build -t synctube .` -- `docker run --rm -it -p 4200:4200 -v ${PWD}/user:/usr/src/app/user synctube` +As alternative, you can install Docker and run: +> ```shell +> docker build -t synctube . +> docker run --rm -it -p 4200:4200 -v ${PWD}/user:/usr/src/app/user synctube +> ``` + +or + +> ```shell +> docker compose up -d +> ``` + - (Docker container hides real local/global ips, so you need to checkout it manually) ### Configuration -- cgit v1.2.3