-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 898 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 898 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
services:
backend:
build: ./backend
ports:
- "8000:8000"
environment:
- REDDIT_CLIENT_ID=${REDDIT_CLIENT_ID}
- REDDIT_CLIENT_SECRET=${REDDIT_CLIENT_SECRET}
- REDDIT_USER_AGENT=${REDDIT_USER_AGENT}
- DATABASE_URL=sqlite:///./reddit_sentiment.db
- REDIS_URL=redis://redis:6379
- DEBUG=${DEBUG:-True}
- SECRET_KEY=${SECRET_KEY}
volumes:
- ./backend:/app
- ./data:/app/data
depends_on:
- redis
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
frontend:
build: ./frontend
ports:
- "3000:3000"
environment:
- REACT_APP_API_URL=http://localhost:8000
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
volumes:
redis_data: