-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
executable file
·44 lines (40 loc) · 1.05 KB
/
docker-compose.yml
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
version: '3.8'
services:
web:
hostname: ocr_web
container_name: ocr_web
image: darveivoldavara/ocr_for_medical_certificates:web
ports:
- "8000:8000"
restart: unless-stopped
build:
context: .
dockerfile: docker/Dockerfile
depends_on:
- redis
env_file: environment/.env
volumes:
- app-data:/app/img
command: ["gunicorn", "app:fastapi_app", "--workers", "1", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000"]
worker:
hostname: ocr_worker
container_name: ocr_worker
image: darveivoldavara/ocr_for_medical_certificates:worker
restart: unless-stopped
build:
context: .
dockerfile: docker/Dockerfile
depends_on:
- redis
env_file: environment/.env
volumes:
- app-data:/app/img
command: ["celery", "-A", "app.celery_app", "worker", "--loglevel=info"]
redis:
hostname: ocr_redis
container_name: ocr_redis
image: redis:alpine
restart: unless-stopped
command: ["redis-server"]
volumes:
app-data: