Created
April 6, 2022 07:37
-
-
Save SahSantoshh/8ff41ce4dd57305358e98d43adff76b1 to your computer and use it in GitHub Desktop.
docker, docker-compose, mysql, mysql5.7, utf8 charset, sql mode traditional
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
db: | |
image: mysql:5.7 | |
restart: always | |
command: mysqld --sql_mode="" --character-set-server=utf8 --collation-server=utf8_general_ci | |
environment: | |
MYSQL_DATABASE: 'kirus_development' | |
MYSQL_ROOT_PASSWORD: 'password' | |
MYSQL_PASSWORD: 'password' | |
MYSQL_USER: 'sahh' | |
ports: | |
- '3306:3306' | |
volumes: | |
- my-db:/var/lib/mysql | |
volumes: | |
my-db: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment