-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pyrohost:main' into main
- Loading branch information
Showing
2 changed files
with
78 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
version: '3.8' | ||
x-common: | ||
database: | ||
&db-environment | ||
# Do not remove the "&db-password" from the end of the line below, it is important | ||
# for Panel functionality. | ||
MYSQL_PASSWORD: &db-password "CHANGE_ME" | ||
MYSQL_ROOT_PASSWORD: "CHANGE_ME_TOO" | ||
panel: | ||
&panel-environment | ||
APP_URL: "http://example.com" | ||
# A list of valid timezones can be found here: http://php.net/manual/en/timezones.php | ||
APP_TIMEZONE: "UTC" | ||
APP_SERVICE_AUTHOR: "[email protected]" | ||
# Uncomment the line below and set to a non-empty value if you want to use Let's Encrypt | ||
# to generate an SSL certificate for the Panel. | ||
# LE_EMAIL: "" | ||
HASHIDS_SALT: "CHANGE_ME_TO_A_RANDOM_20_CHAR_STRING" | ||
mail: | ||
&mail-environment | ||
MAIL_FROM: "[email protected]" | ||
MAIL_DRIVER: "smtp" | ||
MAIL_HOST: "mail" | ||
MAIL_PORT: "1025" | ||
MAIL_USERNAME: "" | ||
MAIL_PASSWORD: "" | ||
MAIL_ENCRYPTION: "true" | ||
database: &db-environment | ||
# Do not remove the "&db-password" from the end of the line below, it is important | ||
# for Panel functionality. | ||
MYSQL_PASSWORD: &db-password 'CHANGE_ME' | ||
MYSQL_ROOT_PASSWORD: 'CHANGE_ME_TOO' | ||
panel: &panel-environment | ||
APP_URL: 'http://example.com' | ||
# A list of valid timezones can be found here: http://php.net/manual/en/timezones.php | ||
APP_TIMEZONE: 'UTC' | ||
APP_SERVICE_AUTHOR: '[email protected]' | ||
# Uncomment the line below and set to a non-empty value if you want to use Let's Encrypt | ||
# to generate an SSL certificate for the Panel. | ||
# LE_EMAIL: "" | ||
HASHIDS_SALT: 'CHANGE_ME_TO_A_RANDOM_20_CHAR_STRING' | ||
mail: &mail-environment | ||
MAIL_FROM: '[email protected]' | ||
MAIL_DRIVER: 'smtp' | ||
MAIL_HOST: 'mail' | ||
MAIL_PORT: '1025' | ||
MAIL_USERNAME: '' | ||
MAIL_PASSWORD: '' | ||
MAIL_ENCRYPTION: 'true' | ||
|
||
# | ||
# ------------------------------------------------------------------------------------------ | ||
|
@@ -34,47 +30,47 @@ x-common: | |
# below if you understand what you are doing. | ||
# | ||
services: | ||
database: | ||
image: mariadb:10.5 | ||
restart: always | ||
command: --default-authentication-plugin=mysql_native_password | ||
volumes: | ||
- "/srv/pterodactyl/database:/var/lib/mysql" | ||
environment: | ||
<<: *db-environment | ||
MYSQL_DATABASE: "panel" | ||
MYSQL_USER: "pterodactyl" | ||
cache: | ||
image: redis:alpine | ||
restart: always | ||
panel: | ||
image: ghcr.io/pyrohost/pyrodactyl:main | ||
restart: always | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
links: | ||
- database | ||
- cache | ||
volumes: | ||
- "/srv/pterodactyl/var/:/app/var/" | ||
- "/srv/pterodactyl/nginx/:/etc/nginx/http.d/" | ||
- "/srv/pterodactyl/certs/:/etc/letsencrypt/" | ||
- "/srv/pterodactyl/logs/:/app/storage/logs" | ||
environment: | ||
<<: [*panel-environment, *mail-environment] | ||
DB_PASSWORD: *db-password | ||
APP_ENV: "production" | ||
APP_ENVIRONMENT_ONLY: "false" | ||
CACHE_DRIVER: "redis" | ||
SESSION_DRIVER: "redis" | ||
QUEUE_DRIVER: "redis" | ||
REDIS_HOST: "cache" | ||
DB_HOST: "database" | ||
DB_PORT: "3306" | ||
HASHIDS_LENGTH: 8 | ||
database: | ||
image: mariadb:10.5 | ||
restart: always | ||
command: --default-authentication-plugin=mysql_native_password | ||
volumes: | ||
- '/srv/pterodactyl/database:/var/lib/mysql' | ||
environment: | ||
<<: *db-environment | ||
MYSQL_DATABASE: 'panel' | ||
MYSQL_USER: 'pterodactyl' | ||
cache: | ||
image: redis:alpine | ||
restart: always | ||
panel: | ||
image: ghcr.io/pyrohost/pyrodactyl:main | ||
restart: always | ||
ports: | ||
- '80:80' | ||
- '443:443' | ||
links: | ||
- database | ||
- cache | ||
volumes: | ||
- '/srv/pterodactyl/var/:/app/var/' | ||
- '/srv/pterodactyl/nginx/:/etc/nginx/http.d/' | ||
- '/srv/pterodactyl/certs/:/etc/letsencrypt/' | ||
- '/srv/pterodactyl/logs/:/app/storage/logs' | ||
environment: | ||
<<: [*panel-environment, *mail-environment] | ||
DB_PASSWORD: *db-password | ||
APP_ENV: 'production' | ||
APP_ENVIRONMENT_ONLY: 'false' | ||
CACHE_DRIVER: 'redis' | ||
SESSION_DRIVER: 'redis' | ||
QUEUE_DRIVER: 'redis' | ||
REDIS_HOST: 'cache' | ||
DB_HOST: 'database' | ||
DB_PORT: '3306' | ||
HASHIDS_LENGTH: 8 | ||
networks: | ||
default: | ||
ipam: | ||
config: | ||
- subnet: 172.20.0.0/16 | ||
default: | ||
ipam: | ||
config: | ||
- subnet: 172.20.0.0/16 |