currently production
This commit is contained in:
30
README.md
Normal file
30
README.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# limbosolutions.com
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
- Docker
|
||||||
|
- Docker Compose
|
||||||
|
- Portainer (optional)
|
||||||
|
- [Duplicati Image with mySql client](https://git.limbosolutions.com/kb/duplicati/src/branch/main/docker/mysqlclient/README.md)
|
||||||
|
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
[Docker Compose File](docker/docker-compose.yaml)
|
||||||
|
|
||||||
|
## Backup and Restore
|
||||||
|
|
||||||
|
Using [custom duplicati image](https://git.limbosolutions.com/kb/duplicati) to daily backups files and databases. Every action (backup/restore) creates an measurement in influxdb for reporting and alerts.
|
||||||
|
|
||||||
|
|
||||||
|
### Duplicati - Default Options
|
||||||
|
|
||||||
|
Notify Influxdb.
|
||||||
|
|
||||||
|
--run-script-after=duplicati-influxdb-notify
|
||||||
|
|
||||||
|
### Duplicati - data job Options
|
||||||
|
|
||||||
|
|
||||||
@@ -9,16 +9,23 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 443:443
|
- 443:443
|
||||||
- 80:80
|
- 80:80
|
||||||
|
- 8080:8080
|
||||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
duplicati:
|
duplicati:
|
||||||
image: duplicati/duplicati:latest
|
image: duplicati-mysqlclient:latest
|
||||||
|
environment:
|
||||||
|
- INFLUXDB_SERVER=${INFLUXDB_SERVER}
|
||||||
|
- INFLUXDB_BUCKET=${INFLUXDB_BUCKET}
|
||||||
|
- INFLUXDB_ORG=${INFLUXDB_ORG}
|
||||||
|
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN}
|
||||||
|
- INFLUXDB_CLIENT_HOSTNAME=${INFLUXDB_CLIENT_HOSTNAME}
|
||||||
volumes:
|
volumes:
|
||||||
- duplicati_data:/data
|
- duplicati_tmpdata:/data
|
||||||
- nginx-conf.d:/backup/nginx-conf.d:ro
|
- nginx-conf.d:/bck/nginx-conf.d
|
||||||
- letsencrypt-conf:/backup/letsencrypt-conf:ro
|
- letsencrypt-conf:/bck/letsencrypt-conf
|
||||||
- certbot-www:/backup/certbot-www:ro
|
- certbot-www:/bck/certbot-www
|
||||||
- duplicati_data:/backup/duplicati_data:ro
|
- duplicati_tmpdata:/bck/duplicati_tmpdata
|
||||||
ports:
|
ports:
|
||||||
- 8205:8200
|
- 8205:8200
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -41,9 +48,17 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 8444:8443
|
- 8444:8443
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
prometheus-exporter:
|
||||||
|
image: nginx/nginx-prometheus-exporter
|
||||||
|
command:
|
||||||
|
- -nginx.scrape-uri
|
||||||
|
- http://wan_reverse_proxy-nginx-1:8080/stub_status
|
||||||
|
ports:
|
||||||
|
- 9113:9113
|
||||||
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
nginx-conf.d:
|
nginx-conf.d:
|
||||||
letsencrypt-conf:
|
letsencrypt-conf:
|
||||||
certbot-www:
|
certbot-www:
|
||||||
duplicati_data:
|
duplicati_tmpdata:
|
||||||
code-server_config:
|
code-server_config:
|
||||||
Reference in New Issue
Block a user