Created
July 19, 2023 02:03
-
-
Save dario61081/6ee1b38a4bf745b046627124bf5883fa to your computer and use it in GitHub Desktop.
docker compose for database
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.8" | |
service: | |
database: | |
image: mysql:latest | |
restart: always | |
networks: | |
- default | |
environment: | |
- MYSQL_ROOT_PASSWORD=root | |
- MYSQL_DATABASE=mysql | |
- MYSQL_USER=root | |
- MYSQL_PASSWORD=root | |
- MYSQL_ROOT_HOST= "%" | |
- TZ=America/Asuncion | |
ports: | |
- "33306:3306" | |
command: --bind-address=0.0.0.0 | |
volumes: | |
- ./mysql:/var/lib/mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment