加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
compose.yml 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
xxx 提交于 2024-05-08 11:26 . compose默认env配置优化
x-logging: &default-logging
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
networks:
meedu-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.11.10.0/24
volumes:
data_mysql:
data_redis:
data_meilisearch:
conf_mysql:
services:
meedu:
build: .
restart: always
environment:
- DB_HOST=mysql
- DB_PORT=3306
- DB_DATABASE=meedu
- DB_USERNAME=root
- DB_PASSWORD=meeduxyz
- REDIS_HOST=redis
- REDIS_PASSWORD=meeduxyz
- REDIS_PORT=6379
- QUEUE_DRIVER=sync
- APP_KEY=base64:s9M5EmBWLWerXU/udZ8biH8GYGKBAEtatGNI2XnzEVM=
- JWT_SECRET=26tpIiNHtYE0YsXeDge837qfIXVmlOES8l9M2u9OTrCZ9NASZcqJdYXBaOSPeLsh
ports:
- 8000:8000
- 8100:8100
- 8200:8200
- 8300:8300
networks:
- meedu-network
depends_on:
- mysql
- redis
logging: *default-logging
redis:
build: ./docker-compose/redis
restart: always
volumes:
- data_redis:/data
# ports:
# - 6379:6379
networks:
- meedu-network
logging: *default-logging
mysql:
build: ./docker-compose/mysql
restart: always
environment:
- MYSQL_DATABASE=meedu
- MYSQL_ROOT_PASSWORD=meeduxyz
volumes:
- data_mysql:/var/lib/mysql
- conf_mysql:/etc/mysql/conf.d
# ports:
# - 3306:3306
networks:
- meedu-network
logging: *default-logging
meilisearch:
image: getmeili/meilisearch:v0.24.0
restart: always
volumes:
- data_meilisearch:/meili_data
# ports:
# - 7700:7700
networks:
- meedu-network
logging: *default-logging
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化