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

78 lines
2.3 KiB
YAML
Raw Normal View History

2018-08-05 01:21:51 +02:00
version: '2'
services:
database:
image: mariadb
volumes:
- "/srv/pterodactyl/database:/var/lib/mysql"
environment:
## Database settings
## change if you want it to be more secure.
2018-08-05 01:21:51 +02:00
- "MYSQL_ROOT_PASSWORD=apassword"
- "MYSQL_DATABASE=pterodb"
- "MYSQL_USER=ptero"
- "MYSQL_PASSWORD=pterodbpass"
cache:
image: redis:alpine
panel:
image: quay.io/pterodactyl/panel:latest
ports:
- "80:80"
- "443:443"
links:
- database
- cache
volumes:
- "/srv/pterodactyl/var/:/app/var/"
2018-11-11 00:57:49 +01:00
- "/srv/pterodactyl/nginx/:/etc/nginx/conf.d/"
- "/srv/pterodactyl/certs/:/etc/letsencrypt/"
- "/srv/pterodactyl/logs/:/var/log/"
2018-08-05 01:21:51 +02:00
environment:
## These are defaults and should be left alone
- "APP_ENV=production"
- "APP_DEBUG=false"
- "APP_THEME=pterodactyl"
- "APP_CLEAR_TASKLOG=720"
- "APP_DELETE_MINUTES=10"
- "APP_ENVIRONMENT_ONLY=false"
- "QUEUE_HIGH=high"
- "QUEUE_STANDARD=standard"
- "QUEUE_LOW=low"
2018-08-14 05:33:15 +02:00
## Cache settings
2018-08-05 01:21:51 +02:00
- "CACHE_DRIVER=redis"
- "SESSION_DRIVER=redis"
- "QUEUE_DRIVER=redis"
- "REDIS_HOST=cache"
2018-08-05 01:21:51 +02:00
- "REDIS_PASSWORD=null"
- "REDIS_PORT=6379"
## Domain settings
2018-11-11 00:57:49 +01:00
- "APP_URL=https://your.domain.here" ## if you are running this behind a reverse proxy with ssl app_url needs to be https still.
2018-08-05 01:21:51 +02:00
## Timezone settings
2018-11-11 00:57:49 +01:00
- "APP_TIMEZONE=UTC" ## http://php.net/manual/en/timezones.php
2018-08-05 01:21:51 +02:00
## Service egg settings
2018-11-11 00:57:49 +01:00
- "APP_SERVICE_AUTHOR=noreply@your.domain.here" ## this is the email that gets put on eggs you create
2018-08-05 01:21:51 +02:00
## Database settings
2018-11-11 00:57:49 +01:00
## These can be left alone. Only change if you know what you are doing.
- "DB_HOST=database"
2018-08-05 01:21:51 +02:00
- "DB_PORT=3306"
- "DB_DATABASE=pterodb"
- "DB_USERNAME=ptero"
- "DB_PASSWORD=pterodbpass"
## Email settings
- "MAIL_FROM=noreply@your.domain.here"
- "MAIL_DRIVER=smtp"
- "MAIL_HOST=mail"
- "MAIL_PORT=1025"
- "MAIL_USERNAME=''"
- "MAIL_PASSWORD=''"
2018-08-14 06:01:25 +02:00
- "MAIL_ENCRYPTION=true"
2018-11-11 00:57:49 +01:00
## certbot settings - Used to automatically generate ssl certs and
- "LE_EMAIL=''" ## leave blank unless you aree generating certs.
2018-08-14 06:01:25 +02:00
networks:
default:
ipam:
config:
- subnet: 172.20.0.0/16