-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
133 lines (133 loc) · 3.15 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
125
126
127
128
129
130
131
132
133
version: '3.3'
services:
bme280:
container_name: bme280
build:
context: ./
dockerfile: ./Dockerfile
volumes:
- ./secret.py:/app/secret.py
command:
- /app/poll-bme280.py
restart: always
depends_on:
- influxdb
octopus:
container_name: octopus
build:
context: ./
dockerfile: ./Dockerfile
volumes:
- ./secret.py:/app/secret.py
command:
- poll-octopus.py
restart: always
depends_on:
- influxdb
poll-internet:
container_name: internet
build:
context: ./
dockerfile: ./Dockerfile
volumes:
- ./secret.py:/app/secret.py
command:
- poll-internet.py
restart: always
depends_on:
- influxdb
patch-cloudflare:
container_name: cloudflare
build:
context: ./
dockerfile: ./Dockerfile
volumes:
- ./secret.py:/app/secret.py
command:
- patch-cloudflare.py
restart: always
depends_on:
- influxdb
flask-server:
container_name: flask
build:
context: ./
dockerfile: ./Dockerfile
volumes:
- ./secret.py:/app/secret.py
environment:
- FLASK_APP=./flask-server.py
entrypoint:
- flask
command:
- run
- --host=0.0.0.0
ports:
- 5000:5000
restart: always
depends_on:
- influxdb
grafana:
container_name: grafana
image: grafana/grafana:8.2.3
restart: always
volumes:
- ./volumes/etc/grafana/:/etc/grafana
- ./volumes/var/lib/grafana:/var/lib/grafana
depends_on:
- influxdb
influxdb:
container_name: influxdb
image: arm64v8/influxdb:1.7
ports:
- "8086:8086"
volumes:
- ./volumes/var/lib/influxdb:/var/lib/influxdb
- ./volumes/etc/influxdb:/volumes/etc/influxdb
restart: always
nginx:
container_name: nginx
image: nginx:1.21-alpine
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
ports:
- "80:80"
- "443:443"
volumes:
- ./volumes/etc/nginx/conf.d:/etc/nginx/conf.d
- ./volumes/etc/letsencrypt:/etc/letsencrypt
- ./volumes/var/www/certbot:/var/www/certbot
restart: always
certbot:
container_name: certbot
image: certbot/certbot:arm64v8-v1.19.0
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
- ./volumes/etc/letsencrypt:/etc/letsencrypt
- ./volumes/var/www/certbot:/var/www/certbot
restart: always
depends_on:
- nginx
wireguard:
image: lscr.io/linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- SERVERURL=dash.rawn.uk
- SERVERPORT=51820
- PEERS=1
- PEERDNS=auto #optional
- INTERNAL_SUBNET=10.0.10.0 #optional
- ALLOWEDIPS=0.0.0.0/0 #optional
volumes:
- ./volumes/etc/wireguard:/config
- ./volumes/var/lib/wireguard:/lib/modules
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped