2022-04-03 06:56:46 +00:00
|
|
|
version: "3.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
database:
|
|
|
|
container_name: mariadb-database
|
|
|
|
image: mariadb:10.6
|
|
|
|
restart: unless-stopped
|
|
|
|
healthcheck:
|
|
|
|
test: mysqladmin ping -h localhost --password=${DB_PASSWORD:-changeit}
|
|
|
|
interval: 1s
|
2024-10-06 08:17:47 +00:00
|
|
|
retries: 20
|
2022-04-03 06:56:46 +00:00
|
|
|
command:
|
|
|
|
- --character-set-server=utf8mb4
|
|
|
|
- --collation-server=utf8mb4_unicode_ci
|
|
|
|
- --skip-character-set-client-handshake
|
|
|
|
- --skip-innodb-read-only-compressed
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-changeit}
|
|
|
|
volumes:
|
2023-01-31 04:18:52 +00:00
|
|
|
- db-data:/var/lib/mysql
|
2022-04-03 06:56:46 +00:00
|
|
|
networks:
|
|
|
|
- mariadb-network
|
|
|
|
|
|
|
|
networks:
|
|
|
|
mariadb-network:
|
|
|
|
name: mariadb-network
|
|
|
|
external: false
|
2023-01-31 04:18:52 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|