mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
services:
|
|
database:
|
|
image: mariadb:10.5
|
|
restart: always
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
volumes:
|
|
- "pterodb:/var/lib/mysql"
|
|
environment:
|
|
MYSQL_DATABASE: "panel"
|
|
MYSQL_USER: "pterodactyl"
|
|
MYSQL_PASSWORD:
|
|
MYSQL_ROOT_PASSWORD:
|
|
cache:
|
|
image: redis:alpine
|
|
restart: always
|
|
panel:
|
|
image: ghcr.io/pyrohost/pyrodactyl:main
|
|
restart: always
|
|
links:
|
|
- database
|
|
- cache
|
|
volumes:
|
|
- "pterovar:/app/var/"
|
|
- "pteronginx:/etc/nginx/http.d/"
|
|
- "pterocerts:/etc/letsencrypt/"
|
|
- "pterologs:/app/storage/logs"
|
|
environment:
|
|
APP_ENV: "production"
|
|
APP_ENVIRONMENT_ONLY: "false"
|
|
CACHE_DRIVER:
|
|
SESSION_DRIVER:
|
|
QUEUE_DRIVER:
|
|
REDIS_HOST:
|
|
DB_HOST:
|
|
DB_PORT:
|
|
DB_PASSWORD: ${MYSQL_PASSWORD}
|
|
MYSQL_PASSWORD:
|
|
MYSQL_ROOT_PASSWORD:
|
|
RECAPTCHA_ENABLED:
|
|
DB_CONNECTION: "mariadb"
|
|
|
|
networks:
|
|
default:
|
|
ipam:
|
|
config:
|
|
- subnet: 172.20.0.0/16
|
|
|
|
volumes:
|
|
pterodb:
|
|
pterovar:
|
|
pteronginx:
|
|
pterocerts:
|
|
pterologs:
|