1 Star 0 Fork 4

zhoukai/orystalBlog

forked from orystal/orystalBlog 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 3.88 KB
一键复制 编辑 原始数据 按行查看 历史
orystal 提交于 2022-02-13 14:04 . 项目初始化
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhoukaiAllen/orystalBlog.git
git@gitee.com:zhoukaiAllen/orystalBlog.git
zhoukaiAllen
orystalBlog
orystalBlog
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385