代码拉取完成,页面将自动刷新
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}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。