-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
44 lines (41 loc) · 942 Bytes
/
docker-compose.prod.yml
File metadata and controls
44 lines (41 loc) · 942 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
version: '3.8'
services:
frontend:
restart: always
environment:
- NGINX_WORKER_PROCESSES=auto
- NGINX_WORKER_CONNECTIONS=1024
deploy:
resources:
limits:
cpus: '0.5'
memory: 256M
reservations:
cpus: '0.25'
memory: 128M
api:
restart: always
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 4
environment:
- ENVIRONMENT=production
- LOG_LEVEL=warning
volumes: [] # Disable hot reload volumes
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M
reservations:
cpus: '0.5'
memory: 256M
database:
restart: always
command: postgres -c max_connections=100 -c shared_buffers=256MB
deploy:
resources:
limits:
cpus: '1.0'
memory: 1G
reservations:
cpus: '0.5'
memory: 512M