-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 917 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (38 loc) · 917 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
41
42
version: "3.8"
services:
# The Redis in-memory datastore used for RQ task queuing and Overleaf TTL caching
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
# The FastAPI backend API server serving the HTTP REST endpoints
api:
build: .
ports:
- "8000:8000"
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- ENVIRONMENT=development
volumes:
- .:/app
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
depends_on:
- redis
# The RQ background worker process that performs the document parsing and rendering
worker:
build: .
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- ENVIRONMENT=development
volumes:
- .:/app
command: python -m app.queue.worker
depends_on:
- redis
volumes:
redis_data: