Files
ptero/panel/docker-compose.yml

76 lines
2.2 KiB
YAML

services:
db:
image: "mariadb:latest"
container_name: pterodactyl_mariadb
restart: unless-stopped
command: "--default-authentication-plugin=mysql_native_password"
volumes:
- "./panel/db:/var/lib/mysql"
environment:
MYSQL_DATABASE: panel
MYSQL_USER: pterodactyl # Change if you want (also change DB_USERNAME in panel section)
MYSQL_PASSWORD: pterodactyl! # Change if you want (also change DB_PASSWORD in panel section)
MYSQL_ROOT_PASSWORD: pterodactyl!! # Change if you want
networks:
- pterodactyl
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 3
cache:
image: "redis:alpine"
container_name: pterodactyl_redis
restart: unless-stopped
networks:
- pterodactyl
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
panel:
build: .
container_name: pterodactyl_panel
restart: unless-stopped
stdin_open: true
tty: true
ports:
- "8080:80"
volumes:
- "./panel/var/:/app/var/"
- "./panel/logs/:/app/storage/logs"
- "./panel/nginx/:/etc/nginx/conf.d/"
environment:
RECAPTCHA_ENABLED: false
TZ: Europe/Moscow # Replace with your time zone
APP_TIMEZONE: Europe/Moscow # Replace with your time zone
APP_ENV: production
APP_ENVIRONMENT_ONLY: false
APP_URL: "https://ptero.manturovo-it.ru" # Replace with the FQDN you want to access the panel at
APP_SERVICE_AUTHOR: nchebrov@manturovo-it.ru # Replace with your email
TRUSTED_PROXIES: "*"
PTERODACTYL_TELEMETRY_ENABLED: false
DB_HOST: db
DB_PORT: 3306
DB_USERNAME: pterodactyl # Replace with what you set for MYSQL_USER in db section
DB_PASSWORD: pterodactyl! # Replace with what you set for MYSQL_PASSWORD in db section
CACHE_DRIVER: redis
SESSION_DRIVER: redis
QUEUE_DRIVER: redis
REDIS_HOST: cache
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy
networks:
- pterodactyl
networks:
pterodactyl:
name: pterodactyl