Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
docker-compose-mariadb.yml 656 Bytes
Copy Edit Raw Blame History
吴小白 authored 2021-12-21 17:30 . perf: 更新持久化存储
version: '2.4'
services:
core:
depends_on:
mysql:
condition: service_healthy
mysql:
image: mariadb:10.6
container_name: jms_mysql
restart: always
command: --character-set-server=utf8 --collation-server=utf8_general_ci
environment:
DB_PORT: $DB_PORT
MARIADB_ROOT_PASSWORD: $DB_PASSWORD
MARIADB_DATABASE: $DB_NAME
healthcheck:
test: "mysql -h127.0.0.1 -P$$DB_PORT -uroot -p$$MARIADB_ROOT_PASSWORD -e 'SHOW DATABASES;'"
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
volumes:
- ${VOLUME_DIR}/mariadb/data:/var/lib/mysql
networks:
- net
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化