1 Star 0 Fork 36

szq001/elk-blog

forked from 杰克/elk-blog 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
docker-compose.yaml 1.27 KB
Copy Edit Raw Blame History
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/szq001/elk-blog.git
git@gitee.com:szq001/elk-blog.git
szq001
elk-blog
elk-blog
master

Search