Created
March 2, 2022 04:58
-
-
Save clucle/70e856b73bb0cde89f9f7d4e6539c919 to your computer and use it in GitHub Desktop.
docker-compose mysql8
This file contains hidden or 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" | |
services: | |
test_database: | |
container_name: mysql8 | |
image: mysql:8 | |
environment: | |
MYSQL_DATABASE: testDB | |
MYSQL_ROOT_PASSWORD: 1234 | |
MYSQL_ROOT_HOST: '%' | |
volumes: | |
- ./test-mysql:/var/lib/mysql | |
ports: | |
- 3306:3306 | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
nofile: | |
soft: 65536 | |
hard: 65536 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment