Skip to content

Commit 8370707

Browse files
committed
Fixes for docker compose formatting and missing storage dir
1 parent fe72539 commit 8370707

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

.github/docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cd /app
33

44
mkdir -p /var/log/panel/logs/ /var/log/supervisord/ /var/log/nginx/ /var/log/php7/ \
55
&& chmod 777 /var/log/panel/logs/ \
6-
&& ln -s /var/log/panel/logs/ /app/storage/
6+
&& ln -s /var/log/panel/logs/ /app/storage/logs/
77

88
## check for .env file and generate app keys if missing
99
if [ -f /app/var/.env ]; then

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ RUN apk add --no-cache --update ca-certificates dcron curl git supervisor tar un
1919
&& docker-php-ext-install bcmath gd pdo_mysql zip \
2020
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
2121
&& cp .env.example .env \
22-
&& mkdir -p bootstrap/cache/ storage/framework/sessions storage/framework/views storage/framework/cache \
22+
&& mkdir -p bootstrap/cache/ storage/logs storage/framework/sessions storage/framework/views storage/framework/cache \
2323
&& chmod 777 -R bootstrap storage \
2424
&& composer install --no-dev --optimize-autoloader \
25-
&& rm -rf .env bootstrap/cache/*.php storage \
25+
&& rm -rf .env bootstrap/cache/*.php \
2626
&& chown -R nginx:nginx .
2727

2828
RUN rm /usr/local/etc/php-fpm.d/www.conf.default \

docker-compose.example.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
version: '3.8'
22
x-common:
3-
database: &db-environment
3+
database:
4+
&db-environment
45
# Do not remove the "&db-password" from the end of the line below, it is important
56
# for Panel functionality.
6-
MYSQL_PASSWORD: "CHANGE_ME" &db-password
7+
MYSQL_PASSWORD: &db-password "CHANGE_ME"
78
MYSQL_ROOT_PASSWORD: "CHANGE_ME_TOO"
8-
panel: &panel-environment
9-
APP_URL: "https://your.domain.here"
9+
panel:
10+
&panel-environment
11+
APP_URL: "https://example.com"
1012
# A list of valid timezones can be found here: http://php.net/manual/en/timezones.php
1113
APP_TIMEZONE: "UTC"
1214
APP_SERVICE_AUTHOR: "noreply@example.com"
1315
# Uncomment the line below and set to a non-empty value if you want to use Let's Encrypt
1416
# to generate an SSL certificate for the Panel.
1517
# LE_EMAIL: ""
16-
mail: &mail-environment
18+
mail:
19+
&mail-environment
1720
MAIL_FROM: "noreply@example.com"
1821
MAIL_DRIVER: "smtp"
1922
MAIL_HOST: "mail"
@@ -37,8 +40,8 @@ services:
3740
- "/srv/pterodactyl/database:/var/lib/mysql"
3841
environment:
3942
<<: *db-environment
40-
MYSQL_DATABASE: "panel"
41-
MYSQL_USER: "pterodactyl"
43+
MYSQL_DATABASE: "panel"
44+
MYSQL_USER: "pterodactyl"
4245
cache:
4346
image: redis:alpine
4447
restart: always
@@ -59,14 +62,14 @@ services:
5962
environment:
6063
<<: *panel-environment
6164
<<: *mail-environment
62-
DB_PASSWORD: *db-password
63-
APP_ENV: "production"
64-
APP_ENVIRONMENT_ONLY: "false"
65-
CACHE_DRIVER: "redis"
66-
SESSION_DRIVER: "redis"
67-
QUEUE_DRIVER: "redis"
68-
REDIS_HOST: "cache"
69-
DB_HOST: "database"
65+
DB_PASSWORD: *db-password
66+
APP_ENV: "production"
67+
APP_ENVIRONMENT_ONLY: "false"
68+
CACHE_DRIVER: "redis"
69+
SESSION_DRIVER: "redis"
70+
QUEUE_DRIVER: "redis"
71+
REDIS_HOST: "cache"
72+
DB_HOST: "database"
7073
networks:
7174
default:
7275
ipam:

0 commit comments

Comments
 (0)