-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 977 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (39 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: "3.3"
services:
mongodb:
image: mongo:latest
container_name: mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: secret
ports:
- "27017:27017"
volumes:
- ./mongo/data:/data/db
# yolo-8 detector
detector:
image: detector:pymongo-v1.0
container_name: detector
environment:
TOKEN: ${TOKEN}
MONGO: mongodb://root:secret@mongodb:27017
restart: on-failure
volumes:
- "./detector:/app/detector"
ports:
- "9090:9090"
entrypoint: uvicorn detector.main:app --host 0.0.0.0 --port 9090 --reload
bot:
build:
context: .
dockerfile: docker/bot.Dockerfile
container_name: parser_bot
environment:
PARSER: parser
TOKEN: ${TOKEN}
MONGO: mongodb://root:secret@mongodb:27017
TF_DETECTOR: tf_detector
volumes:
- "./bot:/app/bot"
- "./data:/tmp/data"
entrypoint: poetry run python3 -m bot