Advertisement
pmfernandes

InfraServer

May 15th, 2024
669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.54 KB | None | 0 0
  1. version: '3.8'
  2. services:
  3.   adguardhome:
  4.     container_name: adguardhome
  5.     image: adguard/adguardhome
  6.     restart: unless-stopped
  7.     network_mode: host
  8.     volumes:
  9.      - ${CONFIG_FOLDER}/adguardhome/work:/opt/adguardhome/work
  10.       - ${CONFIG_FOLDER}/adguardhome/conf:/opt/adguardhome/conf
  11.     environment:
  12.      - TZ=${TIME_ZONE}
  13.   authelia:
  14.     container_name: authelia
  15.     image: authelia/authelia
  16.     restart: unless-stopped
  17.     ports:
  18.      - 9091:9091
  19.     volumes:
  20.      - ${CONFIG_FOLDER}/authelia:/config
  21.     environment:
  22.       TZ: ${TIME_ZONE}
  23.   fail2ban:
  24.     image: crazymax/fail2ban:latest
  25.     container_name: fail2ban
  26.     network_mode: host
  27.     volumes:
  28.      - ${CONFIG_FOLDER}/fail2ban:/data
  29.       - /mnt/homeserver/docker/configs/infra_server/authelia/logs:/log/authelia:ro
  30.       - /mnt/homeserver/lxc/configs/homeassistant/home-assistant.log:/log/homeassistant/home-assistant.log:ro
  31.       - /mnt/homeserver/docker/configs/infra_server/nextcloud/log/nginx/error.log:/log/nextcloud/error.log:ro
  32.       - /mnt/homeserver/docker/configs/infra_server/vaultwarden/logs:/log/vaultwarden:ro
  33.       - /mnt/homeserver/docker/configs/paskito_server/homeassistant/home-assistant.log:/log/paskito/homeassistant/home-assistant.log:ro
  34.       - /mnt/homeserver/docker/configs/paskito_server/authelia/config/logs:/log/paskito/authelia:ro
  35.     environment:
  36.      - TZ=${TIME_ZONE}
  37.       - F2B_LOG_TARGET=${F2B_LOG_TARGET}
  38.       - F2B_LOG_LEVEL=${F2B_LOG_LEVEL}
  39.       - F2B_DB_PURGE_AGE=${F2B_DB_PURGE_AGE}
  40.     cap_add:
  41.      - NET_ADMIN
  42.       - NET_RAW
  43.     restart: unless-stopped
  44.   filebrowser:
  45.     image: filebrowser/filebrowser:s6
  46.     container_name: filebrowser
  47.     environment:
  48.      - PUID=${USER_ID}
  49.       - PGID=${GROUP_ID}
  50.       - FB_NOAUTH=noauth
  51.       - TZ=${TIME_ZONE}
  52.     ports:
  53.      - 8083:80
  54.     volumes:
  55.      - ${CONFIG_FOLDER}/filebrowser/config:/config
  56.       - ${CONFIG_FOLDER}/filebrowser/database:/database
  57.       - /mnt:/srv
  58.     restart: unless-stopped
  59.   homepage:
  60.     image: ghcr.io/gethomepage/homepage:latest
  61.     container_name: homepage
  62.     restart: unless-stopped
  63.     environment:
  64.      - TZ=${TIME_ZONE}
  65.     ports:
  66.      - 3000:3000
  67.     volumes:
  68.      - ${CONFIG_FOLDER}/homepage/config:/app/config
  69.       - /var/run/docker.sock:/var/run/docker.sock:ro # (optional) For docker integrations
  70.   nginx-proxy-manager:
  71.     container_name: nginx-proxy-manager
  72.     image: 'jc21/nginx-proxy-manager:latest'
  73.     restart: unless-stopped
  74.     ports:
  75.      - 180:80 # Public HTTP Port
  76.       - 443:443 # Public HTTPS Port
  77.       - 81:81 # Admin Web Port
  78.     volumes:
  79.      - ${CONFIG_FOLDER}/nginxproxymanager/data:/data
  80.       - ${CONFIG_FOLDER}/nginxproxymanager/letsencrypt:/etc/letsencrypt
  81.     environment:
  82.       TZ: ${TIME_ZONE}
  83.   openspeedtest:
  84.     container_name: openspeedtest
  85.     image: openspeedtest/latest
  86.     restart: unless-stopped
  87.     environment:
  88.      - TZ=${TIME_ZONE}
  89.     ports:
  90.      - 3010:3000
  91.       - 3011:3001
  92.   portainer:
  93.     container_name: portainer    
  94.     image: portainer/portainer-ce:latest
  95.     restart: always
  96.     ports:
  97.      - 8000:8000
  98.       - 9443:9443
  99.     volumes:
  100.      - /var/run/docker.sock:/var/run/docker.sock
  101.       - ${DATA_FOLDER}/portainer:/data
  102.     environment:
  103.      - TZ=${TIME_ZONE}
  104.   speedtest:
  105.     container_name: speedtest
  106.     image: lscr.io/linuxserver/speedtest-tracker:latest
  107.     ports:
  108.      - 8765:80
  109.     volumes:
  110.      - ${CONFIG_FOLDER}/speedtest:/config
  111.     environment:
  112.      # - PUID=${USER_ID}
  113.       # - PGID=${GROUP_ID}
  114.       - TZ=${TIME_ZONE}
  115.       - APP_NAME=My House Speedtest Tracker
  116.       - PUBLIC_DASHBOARD=true
  117.     logging:
  118.       driver: "json-file"
  119.       options:
  120.         max-file: "10"
  121.         max-size: "200k"
  122.     restart: unless-stopped
  123.   uptime-kuma:
  124.     image: louislam/uptime-kuma:1
  125.     container_name: uptime-kuma
  126.     volumes:
  127.      - ${CONFIG_FOLDER}/uptime-kuma:/app/data
  128.       - /var/run/docker.sock:/var/run/docker.sock
  129.     ports:
  130.      - 3001:3001
  131.     restart: unless-stopped
  132.   vaultwarden:
  133.     image: vaultwarden/server:latest
  134.     container_name: vaultwarden
  135.     environment:
  136.      - ADMIN_TOKEN=${VAULT_ADMIN_TOKEN}
  137.       - TZ=${TIME_ZONE}
  138.       - LOG_FILE=data/logs/vaultwarden.log
  139.     volumes:
  140.      - ${CONFIG_FOLDER}/vaultwarden:/data
  141.     ports:
  142.      - "9080:80"
  143.     restart: unless-stopped
  144.   watchtower:
  145.     container_name: watchtower
  146.     image: containrrr/watchtower
  147.     restart: unless-stopped
  148.     volumes:
  149.      - /var/run/docker.sock:/var/run/docker.sock
  150.     command: --debug --cleanup --schedule "0 0 21 * * *"
  151.     environment:
  152.       TZ: ${TIME_ZONE}
  153.       WATCHTOWER_NO_STARTUP_MESSAGE: true
  154.       WATCHTOWER_NOTIFICATIONS_HOSTNAME: "InfraServer"
  155.       WATCHTOWER_NOTIFICATION_REPORT: "true"
  156.       WATCHTOWER_NOTIFICATION_URL: ${TELEGRAM_URL}
  157.       WATCHTOWER_NOTIFICATION_TEMPLATE: |
  158.        {{- if .Report -}}
  159.           {{- with .Report -}}
  160.         {{len .Scanned}} Scanned, {{len .Updated}} Updated, {{len .Failed}} Failed
  161.               {{- range .Updated}}
  162.         - {{.Name}}: {{.CurrentImageID.ShortID}} updated to {{.LatestImageID.ShortID}}
  163.               {{- end -}}
  164.               {{- range .Fresh}}
  165.         - {{.Name}}: {{.State}}
  166.             {{- end -}}
  167.             {{- range .Skipped}}
  168.         - {{.Name}}: {{.State}}: {{.Error}}
  169.             {{- end -}}
  170.             {{- range .Failed}}
  171.         - {{.Name}}: {{.State}}: {{.Error}}
  172.             {{- end -}}
  173.           {{- end -}}
  174.         {{- else -}}
  175.           {{range .Entries -}}{{.Message}}{{"\n"}}{{- end -}}
  176.         {{- end -}}
  177.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement