-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 899 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 899 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
43
44
45
46
47
48
49
version: "3.8"
services:
postgres:
image: timescale/timescaledb:latest-pg16
environment:
POSTGRES_DB: ${POSTGRES_DB:-bias_detector}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-change_me}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7.4-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
api:
build: .
command: uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- postgres
- redis
env_file:
- .env
dashboard:
build: .
command: python -m src.dashboard.app
volumes:
- .:/app
ports:
- "8050:8050"
depends_on:
- api
env_file:
- .env
volumes:
postgres_data:
redis_data: