-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
92 lines (86 loc) · 2.36 KB
/
docker-compose.yaml
File metadata and controls
92 lines (86 loc) · 2.36 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '2'
services:
redis:
image: redis:3
container_name: redis-mosquitto
ports:
- "6379:6379"
volumes:
- ./mosquitto/redis_data:/data
mosquitto:
image: jllopis/mosquitto:v1.4.10
container_name: mosquitto
ports:
- "1883:1883"
- "9883:9883"
depends_on:
- redis
volumes:
- ./mosquitto/etc/mosquitto:/etc/mosquitto
- ./mosquitto/etc/mosquitto.d:/etc/mosquitto.d
- ./mosquitto/var/lib/mosquitto:/var/lib/mosquitto
- ./mosquitto/auth-plugin.conf:/etc/mosquitto.d/auth-plugin.conf
nginx:
build: ./nginx-image
container_name: nginx
environment:
- MY_DOMAIN_NAME=5wodf3rbojgxdiqe.myfritz.net
- LETSENCRYPT_PORT_80_TCP_ADDR=letsencrypt
- LETSENCRYPT_PORT_80_TCP_PORT=80
- LETSENCRYPT_PORT_443_TCP_ADDR=letsencrypt
- LETSENCRYPT_PORT_443_TCP_PORT=443
- APP_PORT_80_TCP_ADDR=grafana
- APP_PORT_80_TCP_PORT=3000
mem_limit: 2g
cpu_shares: 256
ports:
- "80:80"
- "443:443"
links:
- letsencrypt
- grafana
volumes_from:
- letsencrypt
letsencrypt:
image: quay.io/letsencrypt/letsencrypt:latest
container_name: letsencrypt
command: bash -c "sleep 6 && certbot certonly --staging --standalone -d 5wodf3rbojgxdiqe.myfritz.net --text --agree-tos --email job87@web.de --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --verbose --renew-by-default --standalone-supported-challenges http-01"
entrypoint: ""
volumes:
- /etc/letsencrypt
- /var/lib/letsencrypt
ports:
- "80"
- "443"
environment:
- "TERM:xterm"
influxdb:
image: influxdb:latest
container_name: influxdb
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
command: -config /etc/influxdb/influxdb.conf
volumes:
- ./influxdb:/var/lib/influxdb
- ./influxdb.conf:/etc/influxdb/influxdb.conf:ro
telegraf:
image: telegraf:latest
container_name: telegraf
depends_on:
- influxdb
- mosquitto
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/:/var/run:rw
grafana:
image: grafana/grafana:4.0.2
container_name: grafana
ports:
- "3000:3000"
depends_on:
- influxdb
volumes:
- ./grafana:/var/lib/grafana
- ./grafana_config:/etc/grafana/