1
0
Fork 0

Set common user id for container

This commit is contained in:
Michael Nguyen 2018-02-17 21:55:50 -08:00
parent ee1fa347eb
commit 4cd3fc727c
5 changed files with 9 additions and 8 deletions

View file

@ -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

View file

@ -1,4 +1,4 @@
user www-data;
user pterodactyl;
worker_processes 8;
error_log /var/log/nginx/error.log warn;

View file

@ -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

View file

@ -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

View file

@ -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: