From c2df0b7b9765b8fab4eb68c8a84ee13d8a232254 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Wed, 21 Feb 2024 17:01:21 +0100 Subject: [PATCH] =?UTF-8?q?examples/docker-compose.yml=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/docker-compose.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 examples/docker-compose.yml diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml new file mode 100644 index 0000000..0f1c6dd --- /dev/null +++ b/examples/docker-compose.yml @@ -0,0 +1,37 @@ +version: '3' +services: + database: + image: mongo:5 + restart: always + volumes: + - ./database:/data/db + + redis: + image: redis:alpine + restart: always + + server: + restart: always + image: code.anufrij.de/webplay/server:latest + env_file: .env.production + working_dir: /server + command: bash -c "node ./server.js" + volumes: + - ./videos:/webplay/videos + - ./music:/webplay/music + - ./cache:/webplay/cache + - ./uploads:/webplay/uploads + depends_on: + - database + - redis + links: + - redis + - database + + client: + restart: always + image: code.anufrij.de/webplay/client:latest + ports: + - 8081:80 + depends_on: + - server \ No newline at end of file