currently production

This commit is contained in:
2023-06-11 09:50:43 +01:00
parent c5d1719bf0
commit 355833c9f9
3 changed files with 94 additions and 49 deletions

30
README.md Normal file
View 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

View File

@@ -9,16 +9,23 @@ services:
ports:
- 443:443
- 80:80
- 8080:8080
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
restart: unless-stopped
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:
- duplicati_data:/data
- nginx-conf.d:/backup/nginx-conf.d:ro
- letsencrypt-conf:/backup/letsencrypt-conf:ro
- certbot-www:/backup/certbot-www:ro
- duplicati_data:/backup/duplicati_data:ro
- duplicati_tmpdata:/data
- nginx-conf.d:/bck/nginx-conf.d
- letsencrypt-conf:/bck/letsencrypt-conf
- certbot-www:/bck/certbot-www
- duplicati_tmpdata:/bck/duplicati_tmpdata
ports:
- 8205:8200
restart: unless-stopped
@@ -41,9 +48,17 @@ services:
ports:
- 8444:8443
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:
nginx-conf.d:
letsencrypt-conf:
certbot-www:
duplicati_data:
duplicati_tmpdata:
code-server_config: