Created
January 11, 2019 06:12
-
-
Save janurag/cb3f944525d9a6f4aa1b26ee0fb6eaf9 to your computer and use it in GitHub Desktop.
MySQL and Redis Compose
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.5' | |
services: | |
mysql: | |
container_name: mysql-local | |
image: mysql:5.7 | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: <pass123> | |
networks: | |
- db-network | |
redis: | |
container_name: redis-local | |
image: redis | |
networks: | |
- db-network | |
networks: | |
db-network: | |
driver: bridge | |
name: db-net |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment