Update docker/docker-compose.yaml
This commit is contained in:
@@ -1,63 +1,77 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx-geoip:latest #https://git.limbosolutions.com/kb/nginx
|
image: nginx-geoip:latest #https://git.limbosolutions.com/kb/nginx
|
||||||
volumes:
|
volumes:
|
||||||
- nginx-conf.d:/etc/nginx/conf.d
|
- nginx-conf.d:/etc/nginx/conf.d
|
||||||
- letsencrypt-conf:/etc/letsencrypt
|
- letsencrypt-conf:/etc/letsencrypt
|
||||||
- certbot-www:/var/www/certbot
|
- certbot-www:/var/www/certbot
|
||||||
- nginx-log:/var/log/nginx
|
- nginx-log:/var/log/nginx
|
||||||
ports:
|
ports:
|
||||||
- 443:443
|
- 443:443
|
||||||
- 80:80
|
- 80:80
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
- 2222:2222
|
||||||
restart: unless-stopped
|
networks:
|
||||||
promtail:
|
- public
|
||||||
image: grafana/promtail:2.9.4
|
- private
|
||||||
volumes:
|
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
||||||
- nginx-log:/mnt/nginx-logs
|
restart: unless-stopped
|
||||||
- promtail_etc:/etc/promtail
|
promtail:
|
||||||
environment:
|
image: grafana/promtail:2.9.4
|
||||||
- PROMTAIL_LOKISERVER_ADDRESS=${PROMTAIL_LOKISERVER_ADDRESS}
|
volumes:
|
||||||
command: -config.file=/etc/promtail/config.yml -config.expand-env=true
|
- nginx-log:/mnt/nginx-logs
|
||||||
duplicati:
|
- promtail_etc:/etc/promtail
|
||||||
image: duplicati-mysqlclient:latest #https://git.limbosolutions.com/kb/duplicati
|
environment:
|
||||||
volumes:
|
- PROMTAIL_LOKISERVER_ADDRESS=${PROMTAIL_LOKISERVER_ADDRESS}
|
||||||
- duplicati_tmpdata:/data
|
command: -config.file=/etc/promtail/config.yml -config.expand-env=true
|
||||||
- nginx-conf.d:/bck/nginx-conf.d
|
networks:
|
||||||
- letsencrypt-conf:/bck/letsencrypt-conf
|
- private
|
||||||
- certbot-www:/bck/certbot-www
|
duplicati:
|
||||||
- duplicati_tmpdata:/bck/duplicati_tmpdata
|
image: duplicati-mysqlclient:latest
|
||||||
ports:
|
volumes:
|
||||||
- 8205:8200
|
- duplicati_tmpdata:/data
|
||||||
restart: unless-stopped
|
- nginx-conf.d:/bck/nginx-conf.d
|
||||||
code-server:
|
- letsencrypt-conf:/bck/letsencrypt-conf
|
||||||
image: lscr.io/linuxserver/code-server:latest
|
- certbot-www:/bck/certbot-www
|
||||||
environment:
|
- duplicati_tmpdata:/bck/duplicati_tmpdata
|
||||||
- PUID=1000
|
ports:
|
||||||
- PGID=1000
|
- 8205:8200
|
||||||
- TZ=Etc/UTC
|
networks:
|
||||||
- PASSWORD=${CODSERVER_PASSWORD}
|
- private
|
||||||
#- HASHED_PASSWORD= #optional
|
restart: unless-stopped
|
||||||
#- SUDO_PASSWORD=password #optional
|
code-server:
|
||||||
#- SUDO_PASSWORD_HASH= #optional
|
image: lscr.io/linuxserver/code-server:latest
|
||||||
#- PROXY_DOMAIN=code-server.my.domain #optional
|
environment:
|
||||||
- DEFAULT_WORKSPACE=/config/workspace #optional
|
- PUID=1000
|
||||||
volumes:
|
- PGID=1000
|
||||||
- codeserver_config:/config
|
- TZ=Etc/UTC
|
||||||
- nginx-conf.d:/mnt/wan_reverse_proxy_nginx-conf.d
|
- PASSWORD=${CODESERVER_PASSWORD}
|
||||||
- promtail_etc:/mnt/promtail_etc
|
#- HASHED_PASSWORD= #optional
|
||||||
- nginx-log:/mnt/nginx-log
|
#- SUDO_PASSWORD=password #optional
|
||||||
ports:
|
#- SUDO_PASSWORD_HASH= #optional
|
||||||
- 8443:8443
|
#- PROXY_DOMAIN=code-server.my.domain #optional
|
||||||
restart: unless-stopped
|
- DEFAULT_WORKSPACE=/config/workspace #optional
|
||||||
volumes:
|
volumes:
|
||||||
nginx-conf.d:
|
- codeserver_config:/config
|
||||||
letsencrypt-conf:
|
- nginx-conf.d:/mnt/wan_reverse_proxy_nginx-conf.d
|
||||||
certbot-www:
|
- promtail_etc:/mnt/promtail_etc
|
||||||
duplicati_tmpdata:
|
- nginx-log:/mnt/nginx-log
|
||||||
telegraf-etc:
|
ports:
|
||||||
nginx-log:
|
- 8443:8443
|
||||||
codeserver_config:
|
networks:
|
||||||
promtail_etc:
|
- 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:
|
||||||
|
|
||||||
Reference in New Issue
Block a user