代码拉取完成,页面将自动刷新
同步操作将从 lanyulei/ferry 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: "3"
services:
db:
hostname: mysql
container_name: ferry_mysql
image: mysql:5.7.31
restart: always
environment:
- TZ=Asia/Shanghai
- MYSQL_ROOT_PASSWORD=123456
volumes:
- ./docker/mysql/data:/var/lib/mysql/data # 映射数据库保存目录到宿主机,防止数据丢失
- ./docker/mysql/config/my.cnf:/etc/mysql/my.cnf # 映射数据库配置文件
- ./docker/mysql/init_sql:/docker-entrypoint-initdb.d
ports:
- 13306:3306
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci'
]
redis:
hostname: redis
image: redis:5.0.4
container_name: ferry_redis
restart: always
command: redis-server /etc/redis.conf # 启动redis命令
environment:
- TZ=Asia/Shanghai
volumes:
- ./redis/data:/var/lib/redis/data
- ./redis/config/redis.conf:/etc/redis.conf
ports:
- 16379:6379
ferry:
hostname: ferry
image: registry.cn-beijing.aliyuncs.com/lanyulei/ferry:v1.0.0-2
container_name: ferry
depends_on:
- db
- redis
links:
- db:ferry_mysql
- redis:ferry_redis
ports:
- 8002:8002
volumes:
- ./config:/opt/ferry/config
- ./static:/opt/ferry/static
- ./template:/opt/ferry/template
- ./logs:/opt/ferry/logs
environment:
- TZ=Asia/Shanghai
restart: always
command: ./ferry server -c=/opt/ferry/config/settings.yml
ferry_web:
hostname: ferry_web
container_name: ferry_web
image: registry.cn-beijing.aliyuncs.com/lanyulei/ferry_web:v1.0.0-1
links:
- ferry:ferry_host
ports:
- 8001:8001
volumes:
- ./docker/nginx/config/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/entrypoint/docker-entrypoint.sh:/docker-entrypoint.sh
environment:
- TZ=Asia/Shanghai
restart: always
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。