Skip to content

Instantly share code, notes, and snippets.

@mizchi
Created March 22, 2019 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mizchi/140a48eb94305add9d229225daab5728 to your computer and use it in GitHub Desktop.
Save mizchi/140a48eb94305add9d229225daab5728 to your computer and use it in GitHub Desktop.
version: '3.3'
services:
mysql:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- '3306:3306'
environment:
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: dev
MYSQL_USER: root
volumes:
- dbdata:/var/lib/mysql
redis:
image: redis:latest
ports:
- '6379:6379'
command: redis-server --appendonly yes
volumes:
- ./data/redis:/data
volumes:
dbdata:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment