From 661fc0eea205fe5024098c1e99aa1a7f3ef6a8e6 Mon Sep 17 00:00:00 2001 From: Maki Date: Fri, 12 Jul 2024 16:16:02 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20[feat]=20Add=20Docker=20Compose?= =?UTF-8?q?=20setup=20for=20LivePortrait?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Configured Docker Compose with NVIDIA GPU support and necessary resources. Deployed a Python application, exposing it on port 8890. This allows for easy setup and scalability of the LivePortrait project. --- docker-compose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3d4f8ac --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3.8' +services: + app: + build: ./docker + image: liveportrait:latest + volumes: + - ./:/LivePortrait + ports: + - "8890:8890" + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: 1 + capabilities: [ gpu ] + tty: true + command: python3 app.py