-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yaml
82 lines (75 loc) · 1.7 KB
/
docker-compose.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3.8'
services:
backend:
volumes:
- "./:/app"
build:
context: autonode
target: development
networks:
- verk_network
entrypoint: ["autonode/entrypoint.sh"]
ports:
- "8001:8001"
yolo:
volumes:
- "./:/app"
build:
context: yolo
target: development
networks:
- verk_network
command: gunicorn --workers 4 --worker-class uvicorn.workers.UvicornWorker yolo.app:app --bind 0.0.0.0:8001 --timeout 240
ports:
- "8002:8001"
ocr:
volumes:
- "./:/app"
build:
context: ocr
target: development
networks:
- verk_network
command: gunicorn --workers 4 --worker-class uvicorn.workers.UvicornWorker ocr.app:app --bind 0.0.0.0:8001 --timeout 240
ports:
- "8003:8001"
postgres:
image: "docker.io/library/postgres:15"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=autonode
volumes:
- postgres_data:/var/lib/postgresql/data/
networks:
- verk_network
ports:
- "5432:5432" # Uncommented to expose Postgres port to host
celery:
volumes:
- "./:/app"
build:
context: autonode
target: development
depends_on:
- redis
- postgres
networks:
- verk_network
deploy:
replicas: 1
entrypoint: ["celery", "-A", "autonode.worker", "worker", "--loglevel=info"]
redis:
image: "redis/redis-stack-server:latest"
networks:
- verk_network
# ports:
# - "6379:6379" # Uncommented to expose Redis port to host
volumes:
- redis_data:/data
networks:
verk_network:
driver: bridge
volumes:
postgres_data:
redis_data: