1 Star 0 Fork 37

atongmulin/elk-blog

forked from 杰克/elk-blog 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yaml 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
version: '2.2'
services:
redis:
# image: 'redis:6'
build:
context: ./deploy/redis
dockerfile: Dockerfile
# command: redis-server --requirepass yourpassword
ports:
- '16379:6379'
networks:
- main
container_name: el-redis
db:
image: mariadb:10.3
# build:
# context: ./deploy/mysql
# dockerfile: Dockerfile
# image: mysql:8.0.21
# 容器名(以后的控制都通过这个)
hostname: db
container_name: database
# 重启策略
restart: always
env_file:
- .env/staging
ports:
- "3306:3306"
environment:
TZ: Asia/Shanghai
volumes:
- /var/mysql/data:/var/lib/mysql
# 配置挂载
# - /root/mysql/conf/:/etc/mysql/conf.d/
# 初始化目录挂载,注意此处我只跑了这个挂载,只是为了说明其他配置不应该数据初始化
- /var/mysql/init/:/docker-entrypoint-initdb.d/
app:
build:
context: .
dockerfile: Dockerfile
container_name: juzizhou
expose:
- "8080"
ports:
- "8080:8080"
volumes:
- /var/juzizhou:/app
depends_on:
- db
logging:
driver: "json-file"
options:
max-size: "300m"
max-file: "3"
restart: on-failure
networks:
main:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/atongmulin/elk-blog.git
[email protected]:atongmulin/elk-blog.git
atongmulin
elk-blog
elk-blog
master

搜索帮助