From a2dcfaf4a42cc20c3ae0d3520f2b84732ff2c028 Mon Sep 17 00:00:00 2001 From: poslop Date: Sat, 2 Nov 2024 16:10:42 -0500 Subject: [PATCH] installed pteradactyl --- docker-compose.d/Documentation/bookstack.yml | 5 +- docker-compose.d/Networking/gluetun.yml | 31 ----- docker-compose.d/Tools/pterodactyl.yml.tmp | 130 +++++++++++++++++++ docker-compose.d/Tools/qbit.yml | 52 ++++++++ scripts/run-all.sh | 3 +- 5 files changed, 187 insertions(+), 34 deletions(-) delete mode 100644 docker-compose.d/Networking/gluetun.yml create mode 100644 docker-compose.d/Tools/pterodactyl.yml.tmp create mode 100644 docker-compose.d/Tools/qbit.yml diff --git a/docker-compose.d/Documentation/bookstack.yml b/docker-compose.d/Documentation/bookstack.yml index 4dc0704..e051032 100644 --- a/docker-compose.d/Documentation/bookstack.yml +++ b/docker-compose.d/Documentation/bookstack.yml @@ -7,10 +7,11 @@ services: - PGID=1000 - TZ=America/Chicago - APP_URL=https://bookstack.mintyserver.net + - APP_KEY=${BOOKKEY} - DB_HOST=bookstack_db - DB_PORT=3306 - - DB_USER=bookstack - - DB_PASS=${PASS} + - DB_USERNAME=bookstack + - DB_PASSWORD=${PASS} - DB_DATABASE=bookstackapp volumes: - bookstack:/config diff --git a/docker-compose.d/Networking/gluetun.yml b/docker-compose.d/Networking/gluetun.yml deleted file mode 100644 index 517f312..0000000 --- a/docker-compose.d/Networking/gluetun.yml +++ /dev/null @@ -1,31 +0,0 @@ -services: - gluetun: - image: ghcr.io/qdm12/gluetun - cap_add: - - NET_ADMIN - container_name: gluetun - environment: - - VPN_SERVICE_PROVIDER=mullvad - - VPN_TYPE=wireguard - - WIREGUARD_PRIVATE_KEY=${MULLKEY} - - WIREGUARD_ADDRESSES=10.73.138.162/32 - - SERVER_CITIES=Chicago IL - volumes: - - gluetun:/gluetun - ports: - - 8181:8181 - - 6881:6881 - - 6881:6881/udp - restart: unless-stopped - networks: - - mullvad - -networks: - mullvad: - name: mullvad - external: true - -volumes: - gluetun: - name: gluetun - external: true diff --git a/docker-compose.d/Tools/pterodactyl.yml.tmp b/docker-compose.d/Tools/pterodactyl.yml.tmp new file mode 100644 index 0000000..c7e5e78 --- /dev/null +++ b/docker-compose.d/Tools/pterodactyl.yml.tmp @@ -0,0 +1,130 @@ +### +# Minimal Configuration File +# +# This configuration strips services to the absolute bare essentials to function. +# Very useful for reverse proxy configurations where a user would override networking anyways. +### + +services: + ## + # -- Panel Cron -- + # These are required for schedules and other misc tasks to + # function correctly. + ## + tcron: + command: p:cron + container_name: tcron + env_file: ${TPATH}conf.d/panel.env + image: ccarney16/pterodactyl-panel:${PANEL_VERSION:-latest} + profiles: [ panel ] + restart: always + volumes: + - tpanel:/data + networks: + - pterodactyl + + ## + # -- Pterodactyl Daemon -- + # This service provides the wings runtime. + ## + twings: + container_name: twings + environment: + - TZ=${DAEMON_TIMEZONE:-UTC} + image: docker.io/ccarney16/pterodactyl-daemon:${DAEMON_VERSION:-latest} + privileged: true + profiles: [ daemon ] + restart: always + volumes: + - ${DAEMON_DATA_DIRECTORY:-/var/lib/pterodactyl}:${DAEMON_DATA_DIRECTORY:-/var/lib/pterodactyl} + - ${DOCKER_SOCKET:-/var/run/docker.sock}:/var/run/docker.sock + - /tmp/pterodactyl/:/tmp/pterodactyl/ + - ${TPATH}conf.d/daemon:/etc/pterodactyl + working_dir: ${DAEMON_DATA_DIRECTORY:-/var/lib/pterodactyl} + networks: + - pterodactyl_nw + - caddy + + ## + # -- MariaDB -- + # Required for the control panel to work. + # Stores Server/User information + ## + tdb: + image: docker.io/library/mariadb:10.11 + container_name: tdb + env_file: ${TPATH}conf.d/mariadb.env + networks: + - pterodactyl + profiles: [ panel ] + restart: always + volumes: + - tdb:/var/lib/mysql + + ## + # -- Pterodactyl Panel -- + # This is the container that provides the main web interface. + ## + tpanel: + env_file: ${TPATH}conf.d/panel.env + image: docker.io/ccarney16/pterodactyl-panel:${PANEL_VERSION:-latest} + container_name: tpanel + profiles: [ panel ] + ports: + - 4848:80 + restart: always + volumes: + - tpanel:/data + depends_on: + tdb: + condition: service_started + tredis: + condition: service_started + networks: + - pterodactyl + - caddy + + ## + # -- Redis -- + ## + tredis: + container_name: tredis + cpu_count: 2 + image: docker.io/library/redis:alpine + mem_limit: 128m + networks: + - pterodactyl + profiles: [ panel ] + restart: always + + ## + # -- Panel Worker -- + ## + tworker: + container_name: tworker + command: p:worker + env_file: ${TPATH}conf.d/panel.env + image: docker.io/ccarney16/pterodactyl-panel:${PANEL_VERSION:-latest} + profiles: [ panel ] + restart: always + volumes: + - tpanel:/data + networks: + - pterodactyl + +volumes: + tpanel: + name: tpanel + external: true + tdb: + name: tdb + external: true + +networks: + caddy: + external: true + pterodactyl: + external: true + pterodactyl_nw: + external: true + diff --git a/docker-compose.d/Tools/qbit.yml b/docker-compose.d/Tools/qbit.yml new file mode 100644 index 0000000..18317ce --- /dev/null +++ b/docker-compose.d/Tools/qbit.yml @@ -0,0 +1,52 @@ +services: + qbittorrent: + image: lscr.io/linuxserver/qbittorrent:latest + container_name: qbittorrent + environment: + - DOCKER_MODS=ghcr.io/vuetorrent/vuetorrent-lsio-mod:latest + - PUID=1000 + - PGID=1000 + - TZ=Etc/UTC + - WEBUI_PORT=8181 + network_mode: "service:gluetun" + volumes: + - qbittorrent:/config + - /mnt/nextcloud:/mnt/files + restart: unless-stopped + depends_on: + gluetun: + condition: service_healthy + + + gluetun: + image: ghcr.io/qdm12/gluetun + cap_add: + - NET_ADMIN + container_name: gluetun + environment: + - VPN_SERVICE_PROVIDER=mullvad + - VPN_TYPE=wireguard + - WIREGUARD_PRIVATE_KEY=${MULLKEY} + - WIREGUARD_ADDRESSES=10.73.138.162/32 + - SERVER_CITIES=Chicago IL + volumes: + - gluetun:/gluetun + devices: + - /dev/net/tun + ports: + - 8181:8181 + - 6881:6881 + - 6881:6881/udp + restart: unless-stopped + networks: + - qbit + +volumes: + qbittorrent: + external: true + gluetun: + external: true + +networks: + qbit: + external: true diff --git a/scripts/run-all.sh b/scripts/run-all.sh index 787bc41..6f01b82 100755 --- a/scripts/run-all.sh +++ b/scripts/run-all.sh @@ -14,7 +14,6 @@ services=( "Media/arr.yml" "Media/jellyfin.yml" "Media/shoko.yml" - "Networking/gluetun.yml" "Networking/technitium.yml" "Networking/caddy.yml" "Tools/searxng.yml" @@ -22,6 +21,8 @@ services=( "Tools/p2pool.yml" "Tools/ariang.yml" "Tools/nextcloud-aio.yml" + "Tools/qbit.yml" + "pterodactyl/docker-compose.yml" ) # Start building the docker compose command with multiple -f flags