From d16d7d0b581ce794ce7d273581d95e2e4c1811f6 Mon Sep 17 00:00:00 2001 From: YingRui Lu Date: Sat, 7 Sep 2024 02:33:20 +0800 Subject: [PATCH] feat: add api service into docker compose (#44) Co-authored-by: yrlu --- docker-compose.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6c448106..1845ae11 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3.8" +version: '3.8' services: hivision_idphotos: @@ -8,4 +8,13 @@ services: image: hivision_idphotos2 command: python3 app.py --host 0.0.0.0 --port 7860 ports: - - "7860:7860" + - '7860:7860' + + hivision_idphotos_api: + build: + context: . + dockerfile: Dockerfile + image: hivision_idphotos + command: python3 deploy_api.py + ports: + - '8080:8080'