1 Star 0 Fork 31

鑫淼/docker-宝塔

forked from 可爱猫/docker-宝塔 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
version: "3"
services:
app:
container_name: app
build:
context: ./app/
args:
- CENTOS_VERSION=${CENTOS_VERSION}
- BT_INSTALL_PATH=${BT_INSTALL_PATH}
- BT_USERNAME=${BT_USERNAME}
- BT_PASSWORD=${BT_PASSWORD}
# - DNS1=${DNS1}
# - DNS2=${DNS2}
stdin_open: true
tty: true
privileged: true
user: root
restart: always
# dns:
# - ${DNS1}
# - ${DNS2}
ports:
- ${BT_PORT}:8888
- ${WEB_PORT}:80
- ${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
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
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}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/yanghaoji/docker-bt.git
git@gitee.com:yanghaoji/docker-bt.git
yanghaoji
docker-bt
docker-宝塔
master

搜索帮助