diff --git a/services/http/Dockerfile b/services/http/Dockerfile index c688039..c238429 100644 --- a/services/http/Dockerfile +++ b/services/http/Dockerfile @@ -2,6 +2,6 @@ FROM nginx:alpine LABEL maintainer="tehtotalpwnage@gmail.com" -RUN adduser -g '' -D -u 82 www-data +RUN adduser -g '' -D -u 9999 pterodactyl COPY nginx.conf /etc/nginx/nginx.conf diff --git a/services/http/nginx.conf b/services/http/nginx.conf index 30aae97..34dcde6 100644 --- a/services/http/nginx.conf +++ b/services/http/nginx.conf @@ -1,4 +1,4 @@ -user www-data; +user pterodactyl; worker_processes 8; error_log /var/log/nginx/error.log warn; diff --git a/services/php/Dockerfile b/services/php/Dockerfile index 84742f6..e86ece1 100644 --- a/services/php/Dockerfile +++ b/services/php/Dockerfile @@ -20,12 +20,13 @@ RUN docker-php-ext-install zip RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer # Set up the server working directory. +RUN adduser -g '' -D -u 9999 pterodactyl RUN mkdir -p /var/www/html/pterodactyl WORKDIR /var/www/html/pterodactyl -RUN chown -R www-data:www-data /var/www/html/pterodactyl +RUN chown -R pterodactyl:pterodactyl /var/www/html/pterodactyl # Deploy panel files. -USER www-data:www-data +USER pterodactyl:pterodactyl RUN curl -Lo panel.tar.gz https://github.com/Pterodactyl/Panel/releases/download/v0.7.0/panel.tar.gz RUN tar --strip-components=1 -xzvf panel.tar.gz RUN cp .env.example .env diff --git a/services/php/supervisord.conf b/services/php/supervisord.conf index 8b6f386..9c78166 100644 --- a/services/php/supervisord.conf +++ b/services/php/supervisord.conf @@ -14,7 +14,7 @@ command=./install autostart=true autorestart=false exitcodes=0 -user=www-data +user=pterodactyl directory=/var/www/html/pterodactyl redirect_stderr=true stdout_logfile=/dev/stdout @@ -25,7 +25,7 @@ process_name=%(program_name)s_%(process_num)02d command=php /var/www/html/pterodactyl/artisan queue:work database --queue=high,standard,low --sleep=3 --tries=3 autostart=true autorestart=true -user=www-data +user=pterodactyl numprocs=8 redirect_stderr=true stdout_logfile=/var/log/pterodactyl/worker.log diff --git a/services/php/www.conf b/services/php/www.conf index e0e8162..a4ea278 100644 --- a/services/php/www.conf +++ b/services/php/www.conf @@ -20,8 +20,8 @@ ; Unix user/group of processes ; Note: The user is mandatory. If the group is not set, the default user's group ; will be used. -user = www-data -group = www-data +user = pterodactyl +group = pterodactyl ; The address on which to accept FastCGI requests. ; Valid syntaxes are: