-
-
Save maiquealmeida/acc67fa2d85fd9d3a8500190ef51185d to your computer and use it in GitHub Desktop.
Docker Compose file for up a MySQL dabatase environment and RedisDB
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
MYSQL_ROOT_PASSWORD=root | |
MYSQL_DATABASE=database_name |
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' | |
services: | |
db: | |
image: mysql:5 | |
restart: always | |
environment: | |
- MYSQL_ROOT_PASSWORD | |
- MYSQL_DATABASE | |
ports: | |
- 3306:3306 | |
redis: | |
image: redis:alpine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment