Skip to content

Commit

Permalink
feat: add api service into docker compose (#44)
Browse files Browse the repository at this point in the history
Co-authored-by: yrlu <[email protected]>
  • Loading branch information
superiorlu and yrlu authored Sep 6, 2024
1 parent a8e84d6 commit d16d7d0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.8"
version: '3.8'

services:
hivision_idphotos:
Expand All @@ -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'

0 comments on commit d16d7d0

Please sign in to comment.