This commit is contained in:
Dane Everitt 2020-11-14 13:58:51 -08:00
parent 83707079e8
commit 7df3c1d013
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 5 additions and 5 deletions

View file

@ -58,8 +58,8 @@ echo "Checking database status."
until nc -z -v -w30 $DB_HOST 3306
do
echo "Waiting for database connection..."
# wait for 5 seconds before check again
sleep 5
# wait for 1 seconds before check again
sleep 1
done
## make sure the db is set up

View file

@ -28,8 +28,7 @@ RUN apk add --no-cache --update ca-certificates dcron curl git supervisor tar un
RUN rm /usr/local/etc/php-fpm.d/www.conf.default \
&& echo "* * * * * /usr/local/bin/php /app/artisan schedule:run >> /dev/null 2>&1" >> /var/spool/cron/crontabs/root \
&& sed -i s/ssl_session_cache/#ssl_session_cache/g /etc/nginx/nginx.conf \
&& mkdir -p /var/run/php /var/run/nginx \
&& apk del --no-cache libpng-dev libxml2-dev libzip-dev
&& mkdir -p /var/run/php /var/run/nginx
COPY .github/docker/default.conf /etc/nginx/conf.d/default.conf
COPY .github/docker/www.conf /usr/local/etc/php-fpm.d/www.conf

View file

@ -34,8 +34,9 @@ x-common:
#
services:
database:
image: mariadb:10.4
image: library/mysql:8.0
restart: always
command: --default-authentication-plugin=mysql_native_password
volumes:
- "/srv/pterodactyl/database:/var/lib/mysql"
environment: