Fetch the repository succeeded.
This action will force synchronization from 杰克/elk-blog, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
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:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。