-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
77 lines (66 loc) · 1.98 KB
/
docker-compose.prod.yml
File metadata and controls
77 lines (66 loc) · 1.98 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# ============================================================================
# Redd-Archiver Production Docker Compose Overrides
# ============================================================================
# This file provides production-specific configuration for HTTPS deployment
#
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d
#
# OR with profile (preferred):
# docker compose --profile production up -d
#
# ============================================================================
version: '3.8'
services:
nginx:
# Override to use HTTPS configuration
volumes:
- ${OUTPUT_PATH:-./output}:/usr/share/nginx/html:ro
# HTTPS configuration (replaces HTTP config)
- ./docker/nginx/nginx.conf.https.active:/etc/nginx/nginx.conf:ro
# Certbot webroot for Let's Encrypt challenges (read-only)
- certbot-webroot:/var/www/certbot:ro
# SSL certificates (read-only)
- certbot-certs:/etc/letsencrypt:ro
# Production resource limits (increased from development)
deploy:
resources:
limits:
memory: 256m
cpus: '1'
reservations:
memory: 128m
cpus: '0.5'
certbot:
# Remove profile restriction to activate certbot in production mode
profiles: []
# ============================================================================
# Production Resource Limits for Other Services
# ============================================================================
postgres:
deploy:
resources:
limits:
memory: 8g
cpus: '8'
reservations:
memory: 4g
cpus: '4'
search-server:
deploy:
resources:
limits:
memory: 1g
cpus: '2'
reservations:
memory: 512m
cpus: '1'
reddarchiver-builder:
deploy:
resources:
limits:
memory: 4g
cpus: '4'
reservations:
memory: 2g
cpus: '2'