1 Star 0 Fork 0

ziyan/docker-ubuntu20-bt-panel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
compose.yml 1.91 KB
一键复制 编辑 原始数据 按行查看 历史
version: "1.2"
services:
app:
container_name: ${CONTAINER_NAME}
image: ${IMAGE}
stdin_open: true
tty: true
privileged: true
user: root
restart: always
ports:
## 需要映射的端口自行修改
- ${WEB_PORT}:80
- ${WEB_PORT_BAK}:8080
- ${HTTPS_PORT}:443
# - ${FTP_DATA_PORT}:20
# - ${FTP_PORT}:21
- ${SSH_PORT}:22
- ${MYSQL_PORT}:3306
- ${PHPMYADMIN_PORT}:888
- ${REDIS_PORT}:6379
# - ${MEMCACHED_PORT}:11211
## 默认bt端口号,详细见 bt default,进入面板之后自行修改
- 15441:15441
expose:
- ${XDEBUG_PORT}
- 39000-40000
volumes:
- www:/www
- usr:/usr
- etc:/etc
- ${WEB_PATH}:/www/wwwroot:cached
- ${BACKUP_PATH}:/www/backup
- ${LOGS_PATH}:/www/wwwlogs
- ${DATA_PATH}:/www/server/data:cached
# - ${REDIS_PATH}:/www/server/redis/:cached
## 开机启动服务
command: ["sh", "${CMD_INIT}"]
# 用户bt数据备份与导入,可以不需要
# app_backup:
# container_name: app_backup
# build:
# context: ./app_backup/
# depends_on:
# - app
# stdin_open: true
# tty: true
# privileged: true
# volumes:
# - ./app_backup/export:/app_backup/export
# - www:/app_backup/data/www
# - usr:/app_backup/data/usr
# - etc:/app_backup/data/etc
volumes:
www:
driver: ${VOLUMES_DRIVER}
usr:
driver: ${VOLUMES_DRIVER}
etc:
driver: ${VOLUMES_DRIVER}
# networks:
# default:
# driver: ${NETWORKS_DRIVER}
# external: true
networks:
default:
external: true
name: ${NETWORKS_NAME}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wuxueshi/docker-ubuntu20-bt-panel.git
[email protected]:wuxueshi/docker-ubuntu20-bt-panel.git
wuxueshi
docker-ubuntu20-bt-panel
docker-ubuntu20-bt-panel
master

搜索帮助