-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 1.03 KB
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
version: '3.8'
services:
db:
image: postgres:15
environment:
POSTGRES_DB: qrs
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- db-data:/var/lib/postgresql/data
ports:
- '5432:5432'
redis:
image: redis:7
ports:
- '6379:6379'
backend:
build:
context: .
dockerfile: Dockerfile.backend
environment:
- DATABASE_URL=postgresql+asyncpg://postgres:password@db:5432/qrs
- REDIS_URL=redis://redis:6379/0
- OUTPUT_DIR=/app/output
- CORS_ORIGINS=*
depends_on:
- db
- redis
ports:
- '8000:8000'
worker:
build:
context: .
dockerfile: Dockerfile.backend
command: celery -A src.quant_research_starter.api.tasks.celery_app.celery_app worker --loglevel=info
environment:
- DATABASE_URL=postgresql+asyncpg://postgres:password@db:5432/qrs
- REDIS_URL=redis://redis:6379/0
depends_on:
- db
- redis
volumes:
db-data: