1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 09:02:28 +01:00
Pterodactyl-Panel/docker-compose.example.yml

79 lines
2.2 KiB
YAML
Raw Normal View History

2020-11-14 22:10:11 +01:00
version: '3.8'
x-common:
database:
&db-environment
2020-11-14 22:10:11 +01:00
# 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"
2020-11-14 22:10:11 +01:00
MYSQL_ROOT_PASSWORD: "CHANGE_ME_TOO"
panel:
&panel-environment
APP_URL: "http://example.com"
2020-11-14 22:10:11 +01:00
# A list of valid timezones can be found here: http://php.net/manual/en/timezones.php
APP_TIMEZONE: "UTC"
APP_SERVICE_AUTHOR: "noreply@example.com"
# 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: ""
mail:
&mail-environment
2020-11-14 22:10:11 +01:00
MAIL_FROM: "noreply@example.com"
MAIL_DRIVER: "smtp"
MAIL_HOST: "mail"
MAIL_PORT: "1025"
MAIL_USERNAME: ""
MAIL_PASSWORD: ""
MAIL_ENCRYPTION: "true"
#
# ------------------------------------------------------------------------------------------
# DANGER ZONE BELOW
#
# The remainder of this file likely does not need to be changed. Please only make modifications
# below if you understand what you are doing.
#
2018-08-05 01:21:51 +02:00
services:
database:
image: mariadb:10.5
restart: always
2020-11-14 22:58:51 +01:00
command: --default-authentication-plugin=mysql_native_password
2018-08-05 01:21:51 +02:00
volumes:
- "/srv/pterodactyl/database:/var/lib/mysql"
environment:
2020-11-14 22:10:11 +01:00
<<: *db-environment
MYSQL_DATABASE: "panel"
MYSQL_USER: "pterodactyl"
2018-08-05 01:21:51 +02:00
cache:
image: redis:alpine
restart: always
2018-08-05 01:21:51 +02:00
panel:
2020-11-15 05:46:37 +01:00
image: ghcr.io/pterodactyl/panel:latest
restart: always
2018-08-05 01:21:51 +02:00
ports:
- "80:80"
- "443:443"
links:
- database
- cache
volumes:
- "/srv/pterodactyl/var/:/app/var/"
- "/srv/pterodactyl/nginx/:/etc/nginx/http.d/"
2018-11-11 00:57:49 +01:00
- "/srv/pterodactyl/certs/:/etc/letsencrypt/"
- "/srv/pterodactyl/logs/:/app/storage/logs"
2018-08-05 01:21:51 +02:00
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"
2018-08-14 06:01:25 +02:00
networks:
default:
ipam:
config:
- subnet: 172.20.0.0/16