Skip to content

Instantly share code, notes, and snippets.

@ThomRoman
Forked from w0rldart/docker-compose.yaml
Created June 29, 2022 20:17
Show Gist options
  • Save ThomRoman/22b165ac87947643472f95f9898a7e20 to your computer and use it in GitHub Desktop.
Save ThomRoman/22b165ac87947643472f95f9898a7e20 to your computer and use it in GitHub Desktop.
MariaDB docker-compose with UTF8 Collation
version: '3.1'
services:
db:
image: mariadb
restart: always
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci --init-connect='SET NAMES UTF8;' --innodb-flush-log-at-trx-commit=0
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=example
- MYSQL_DATABASE=test
- MYSQL_USER=testuser
- MYSQL_PASSWORD=testpassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment