1 Star 2 Fork 2

飒爽师叔/翼龙面板汉化版

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.example.yml 2.13 KB
一键复制 编辑 原始数据 按行查看 历史
version: '3.8'
x-common:
database:
&db-environment
# 不要将下面行尾 "&db-password" 删除,这对面板功能很重要。
MYSQL_PASSWORD: &db-password "CHANGE_ME"
MYSQL_ROOT_PASSWORD: "CHANGE_ME_TOO"
panel:
&panel-environment
APP_URL: "http://example.com"
# 可以在这里找到有效时区列表:http://php.net/manual/zh/timezones.php
APP_TIMEZONE: "Asia/Shanghai"
APP_SERVICE_AUTHOR: "[email protected]"
# 如果您想使用 Let's Encrypt 为面板生成 SSL 证书,请取消下面的注释行并写入配置
# LE_EMAIL: ""
mail:
&mail-environment
MAIL_FROM: "[email protected]"
MAIL_DRIVER: "smtp"
MAIL_HOST: "mail"
MAIL_PORT: "1025"
MAIL_USERNAME: ""
MAIL_PASSWORD: ""
MAIL_ENCRYPTION: "true"
#
# ------------------------------------------------------------------------------------------
# 下面的危险区域
#
# 该文件的其余部分可能不需要更改。 请仅在您了解自己在做什么的情况下进行以下修改。
#
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.dockerproxy.com/pterodactyl-china/panel:latest
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"
networks:
default:
ipam:
config:
- subnet: 172.20.0.0/16
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/vlssu/pterodactyl-panel.git
[email protected]:vlssu/pterodactyl-panel.git
vlssu
pterodactyl-panel
翼龙面板汉化版
develop

搜索帮助

0d507c66 1850385 C8b1a773 1850385