77 lines
2.0 KiB
YAML
77 lines
2.0 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
|
|
code-server:
|
|
image: lscr.io/linuxserver/code-server:latest
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Etc/UTC
|
|
- PASSWORD=${CODESERVER_PASSWORD}
|
|
#- HASHED_PASSWORD= #optional
|
|
#- SUDO_PASSWORD=password #optional
|
|
#- SUDO_PASSWORD_HASH= #optional
|
|
#- PROXY_DOMAIN=code-server.my.domain #optional
|
|
- DEFAULT_WORKSPACE=/config/workspace #optional
|
|
volumes:
|
|
- codeserver_config:/config
|
|
- nginx-conf.d:/mnt/wan_reverse_proxy_nginx-conf.d
|
|
- promtail_etc:/mnt/promtail_etc
|
|
- nginx-log:/mnt/nginx-log
|
|
ports:
|
|
- 8443:8443
|
|
networks:
|
|
- private
|
|
restart: unless-stopped
|
|
volumes:
|
|
nginx-conf.d:
|
|
letsencrypt-conf:
|
|
certbot-www:
|
|
duplicati_tmpdata:
|
|
telegraf-etc:
|
|
nginx-log:
|
|
codeserver_config:
|
|
promtail_etc:
|
|
networks:
|
|
public:
|
|
private:
|
|
|