Set network to host

This commit is contained in:
LinuxSquare 2024-11-15 22:28:14 +01:00
parent 3695ae7e59
commit d6b098ab74
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
# Maintainer: LinuxSquare <linuxsquare@noveria.org> # Maintainer: LinuxSquare <linuxsquare@noveria.org>
pkgname=pterodactyl-panel-compose pkgname=pterodactyl-panel-compose
pkgver=1.11.10 pkgver=1.11.10
pkgrel=0 pkgrel=1
pkgdesc="The Pterodactyl Panel" pkgdesc="The Pterodactyl Panel"
arch="x86_64" arch="x86_64"
url="https://pterodactyl.io/" url="https://pterodactyl.io/"

View file

@ -2,9 +2,9 @@
start() { start() {
mkdir database var nginx certs logs || true mkdir database var nginx certs logs || true
podman run --rm -d --name "pterodactyl-db" -p 3306:3306 -v ./database:/var/lib/mysql -e MYSQL_DATABASE="panel" -e MYSQL_USER="pterodactyl" -e MYSQL_PASSWORD="%MYSQL_PASSWORD%" -e MYSQL_ROOT_PASSWORD="%MYSQL_ROOT_PASSWORD%" --userns=keep-id:uid=999,gid=999 docker.io/mariadb:10.5 --default-authentication-plugin=mysql_native_password podman run --rm --network=host -d --name "pterodactyl-db" -v ./database:/var/lib/mysql -e MYSQL_DATABASE="panel" -e MYSQL_USER="pterodactyl" -e MYSQL_PASSWORD="%MYSQL_PASSWORD%" -e MYSQL_ROOT_PASSWORD="%MYSQL_ROOT_PASSWORD%" --userns=keep-id:uid=999,gid=999 docker.io/mariadb:10.5 --default-authentication-plugin=mysql_native_password
podman run --rm -d --name "pterodactyl-cache" -p 6379:6379 docker.io/redis:alpine podman run --rm --network=host -d --name "pterodactyl-cache" docker.io/redis:alpine
podman run --rm -d --name "pterodactyl-panel" -p 80:80 -p 443:443 -v ./var:/app/var -v ./nginx:/etc/nginx/http.d -v ./certs:/etc/letsencrypt -v ./logs:/app/storage/logs -e DB_PASSWORD="%MYSQL_PASSWORD%" -e APP_ENV="production" -e APP_ENVIRONMENT_ONLY="false" -e CACHE_DRIVER="redis" -e SESSION_DRIVER="redis" -e QUEUE_DRIVER="redis" -e REDIS_HOST="$1" -e DB_HOST="$1" -e DB_PORT="3306" -e TRUSTED_PROXIES="*" -e APP_TIMEZONE="%APP_TIMEZONE%" -e APP_SERVICE_AUTHOR="mail@example.com" ghcr.io/pterodactyl/panel:v%VERSION% podman run --rm --network=host -d --name "pterodactyl-panel" -v ./var:/app/var -v ./nginx:/etc/nginx/http.d -v ./certs:/etc/letsencrypt -v ./logs:/app/storage/logs -e DB_PASSWORD="%MYSQL_PASSWORD%" -e APP_ENV="production" -e APP_ENVIRONMENT_ONLY="false" -e CACHE_DRIVER="redis" -e SESSION_DRIVER="redis" -e QUEUE_DRIVER="redis" -e REDIS_HOST="$1" -e DB_HOST="$1" -e DB_PORT="3306" -e TRUSTED_PROXIES="*" -e APP_TIMEZONE="%APP_TIMEZONE%" -e APP_SERVICE_AUTHOR="mail@example.com" ghcr.io/pterodactyl/panel:v%VERSION%
} }
stop() { stop() {