-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
86 lines (72 loc) · 1.78 KB
/
docker-compose.yml
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
78
79
80
81
82
83
84
85
86
version: '3'
services:
web:
image: brian214/personal-site-web:latest
expose:
- "8000"
env_file:
- .env
volumes:
- static_volume:/var/www/brianis.me/static
- ./media:/var/www/brianis.me/media
- ./config/settings.py:/app/personalsite/settings.py
nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
- "3000:3000"
volumes:
- nginx-logs:/var/log/nginx;
- static_volume:/var/www/brianis.me/static:ro
- ./config/nginx.conf:/etc/nginx/nginx.conf
- ./media:/var/www/brianis.me/media:ro
- ./certbot/www/:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
logging:
driver: fluentd
options:
tag: "nginx"
depends_on:
- web
- grafana
- fluentd
nginx_prometheus_exporter:
image: nginx/nginx-prometheus-exporter:latest
command: --nginx.scrape-uri=http://nginx:8080/stub_status
depends_on:
- nginx
prometheus:
image: prom/prometheus:latest
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-storage:/prometheus
ports:
- "9090:9090"
depends_on:
- nginx_prometheus_exporter
- fluentd
grafana:
image: grafana/grafana-enterprise
volumes:
- grafana-storage:/var/lib/grafana
fluentd:
image: brian214/fluentd
volumes:
- nginx-logs:/var/log/nginx;
- fluentd-tmp:/tmp/fluentd
- ./config/fluent.conf:/fluentd/etc/fluent.conf
ports:
- "24231:24231"
- "24224:24224"
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
volumes:
static_volume:
prometheus-storage:
grafana-storage:
nginx-logs:
fluentd-tmp: