54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
version: '3'
|
|
services:
|
|
nginx:
|
|
image: nginx-geoip:latest #https://git.limbosolutions.com/kb/nginx
|
|
volumes:
|
|
- nginx-conf.d:/etc/nginx/conf.d
|
|
- letsencrypt-conf:/etc/letsencrypt
|
|
- certbot-www:/var/www/certbot
|
|
- nginx-log:/var/log/nginx
|
|
ports:
|
|
- 443:443
|
|
- 80:80
|
|
- 8080:8080
|
|
- 2222:2222
|
|
networks:
|
|
- public
|
|
- private
|
|
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
|
restart: unless-stopped
|
|
promtail:
|
|
image: grafana/promtail:2.9.4
|
|
volumes:
|
|
- nginx-log:/mnt/nginx-logs
|
|
- promtail_etc:/etc/promtail
|
|
environment:
|
|
- PROMTAIL_LOKISERVER_ADDRESS=${PROMTAIL_LOKISERVER_ADDRESS}
|
|
command: -config.file=/etc/promtail/config.yml -config.expand-env=true
|
|
networks:
|
|
- private
|
|
duplicati:
|
|
image: duplicati-mysqlclient:latest
|
|
volumes:
|
|
- 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
|
|
networks:
|
|
- private
|
|
restart: unless-stopped
|
|
volumes:
|
|
nginx-conf.d:
|
|
letsencrypt-conf:
|
|
certbot-www:
|
|
duplicati_tmpdata:
|
|
telegraf-etc:
|
|
nginx-log:
|
|
promtail_etc:
|
|
networks:
|
|
public:
|
|
private:
|
|
|