Last active
February 2, 2023 13:07
-
-
Save azanium/88d4389ef22ff3dbb37fea0a58af098c to your computer and use it in GitHub Desktop.
docker-compose.mysql.yml
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: | |
db: | |
image: mysql:8.0 | |
cap_add: | |
- SYS_NICE | |
restart: always | |
environment: | |
- MYSQL_DATABASE=db | |
- MYSQL_ROOT_PASSWORD=password | |
ports: | |
- '3306:3306' | |
volumes: | |
- db:/var/lib/mysql | |
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql | |
volumes: | |
db: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment