This repository has been archived by the owner on Mar 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
124 lines (116 loc) · 3.48 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '2'
services:
nginx:
image: nginx:alpine
container_name: nginx
hostname: nginx
ports:
- 80:80
- 443:443
volumes:
- $PWD/containers/nginx/${DEV}nginx.conf:/etc/nginx/nginx.conf:ro
- $PWD/containers/nginx/certs:/opt/certs:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
logging:
driver: "json-file"
pghio:
image: pghio:latest
container_name: pghio
hostname: pghio
volumes:
- $PWD/containers/golang_pghio/files/:/opt/pghio/files/:ro
- $PWD/containers/golang_pghio/html/:/opt/pghio/html/:ro
- $PWD/containers/golang_pghio/imgs/:/opt/pghio/imgs/:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
logging:
driver: "json-file"
blog:
image: blog:latest
container_name: blog
hostname: blog
volumes:
- $PWD/containers/golang_blog/files/:/opt/blog/files/:ro
- $PWD/containers/golang_blog/imgs/:/opt/blog/imgs/:ro
- $PWD/containers/golang_blog/posts/:/opt/blog/posts/:ro
- $PWD/containers/golang_blog/tmpl/:/opt/blog/tmpl/:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
logging:
driver: "json-file"
prometheus:
image: prom/prometheus:v2.15.1
container_name: prometheus
hostname: prometheus
volumes:
- $PWD/containers/prometheus/:/opt/prometheus/:ro
# keep data
- /data/prometheus/:/prometheus/data/:rw
- /etc/localtime:/etc/localtime:ro
command:
- '--config.file=/opt/prometheus/prometheus.yml'
# log.level => [debug, info, warn, error]
- '--log.level=info'
# prometheus retention period
- '--storage.tsdb.retention=30d'
# allow reload endpoint
#- '--web.enable-lifecycle'
logging:
driver: "json-file"
mem_limit: 512m
memswap_limit: 512m
restart: unless-stopped
user: 9090:9090
alertmanager:
image: prom/alertmanager:v0.20.0
container_name: alertmanager
hostname: alertmanager
volumes:
- $PWD/containers/alertmanager/:/opt/alertmanager/:rw
- /etc/localtime:/etc/localtime:ro
command:
- '--config.file=/opt/alertmanager/alertmanager.yml'
- '--log.level=debug'
logging:
driver: "json-file"
restart: unless-stopped
grafana:
image: grafana/grafana:6.5.2
container_name: grafana
hostname: grafana
environment:
- GF_SERVER_ROOT_URL=http://grafana.pg-h.io
- GF_AUTH_ANONYMOUS_ENABLED=true
volumes:
- /data/grafana/:/var/lib/grafana/:rw
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
logging:
driver: "json-file"
prometheus-rsa:
image: remote_storage_adapter:latest
container_name: prometheus-rsa
hostname: prometheus-rsa
volumes:
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
logging:
driver: "json-file"
tty: true
influxdb:
image: influxdb:1.7.9-alpine
container_name: influxdb
hostname: influxdb
environment:
- INFLUXDB_HTTP_LOG_ENABLED=false # turn 204 off
# if you don't want to see the NaN debug warnings, you have to fork the project, hard code to info or make adjustments and submit yet another pull request for this feature
# - INFLUXDB_DATA_MAX_SERIES_PER_DATABASE=0 # default is 1000000
volumes:
- /data/influxdb/:/var/lib/influxdb/
- /etc/localtime:/etc/localtime:ro
logging:
driver: "json-file"
mem_limit: 512m
memswap_limit: 512m
restart: unless-stopped