-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 821 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 821 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
version: '1.0.0'
services:
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
command: redis-server --appendonly yes
api:
build: .
ports:
- "8000:8000"
environment:
- API_KEY=dev_api_key
- RATE_LIMIT_MAX=100
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_DB=0
- JWT_SECRET_KEY=dev_jwt_secret_key_change_in_production
- JWT_ALGORITHM=HS256
- JWT_ACCESS_TOKEN_EXPIRE_MINUTES=15
- JWT_REFRESH_TOKEN_EXPIRE_DAYS=7
- CACHE_TTL_ACCOUNTS=60
- CACHE_TTL_TRANSACTIONS=30
volumes:
- ./:/app
command: uvicorn simplebank.main:app --host 0.0.0.0 --port 8000 --reload
restart: unless-stopped
depends_on:
- redis
volumes:
redis_data: