代码拉取完成,页面将自动刷新
同步操作将从 orystal/orystalBlog 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: '3'
services:
mysql:
hostname: mysql
image: mysql
container_name: mysql
restart: always
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --init-connect='SET NAMES utf8mb4;' --innodb-flush-log-at-trx-commit=0
ports:
- "3306:3306"
volumes:
- /usr/local/docker/mysql/data:/var/lib/mysql:rw
environment:
- MYSQL_DATABASE=mysite
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=orystal
- MYSQL_PASSWORD=orystal
- TZ=Asia/Shanghai
redis:
hostname: redis
image: redis
container_name: redis
restart: always
command: redis-server --requirepass orystal
ports:
- "6379:6379"
volumes:
- /usr/local/docker/redis/data:/data:rw
environment:
- TZ=Asia/Shanghai
mysite:
hostname: mysite
build: .
image: mysite:1.0.1
container_name: mysite
restart: always
ports:
- "8000:8000"
volumes:
- /usr/local/docker/mysite/data/static:/home/mysite/static:rw
- /usr/local/docker/mysite/data/migrations/user:/home/mysite/apps/user/migrations:rw
- /usr/local/docker/mysite/data/migrations/verification:/home/mysite/apps/verification/migrations:rw
- /usr/local/docker/mysite/data/migrations/article:/home/mysite/apps/article/migrations:rw
- /usr/local/docker/mysite/data/migrations/webinfo:/home/mysite/apps/webinfo/migrations:rw
- /usr/local/docker/mysite/data/migrations/search:/home/mysite/apps/search/migrations:rw
- /usr/local/docker/mysite/data/migrations/message:/home/mysite/apps/message/migrations:rw
depends_on:
- mysql
- redis
environment:
- TZ=Asia/Shanghai
nginx:
hostname: nginx
container_name: nginx
image: nginx
restart: always
ports:
- "8001:8001"
- "80:80"
privileged: true
volumes:
- /usr/local/docker/nginx/conf:/etc/nginx/conf.d:rw
- /usr/local/docker/mysite/data/static:/var/www/static:rw
- /usr/local/docker/mysite/data/dist:/var/www/dist:rw
environment:
- TZ=Asia/Shanghai
fastdfs-tracker:
hostname: fastdfs-tracker
container_name: fastdfs-tracker
image: delron/fastdfs
network_mode: "host"
restart: always
volumes:
- /usr/local/docker/fastdfs-tracker/data:/var/fdfs
command: tracker
environment:
- TZ=Asia/Shanghai
fastdfs-storage:
hostname: fastdfs-storage
container_name: fastdfs-storage
image: delron/fastdfs
network_mode: "host"
environment:
- TZ=Asia/Shanghai
- TRACKER_SERVER=192.168.31.144:22122
- GROUP_NAME=group1
restart: always
volumes:
- /usr/local/docker/fastdfs-storage/data:/var/fdfs
command: storage
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。