Skip to content

Instantly share code, notes, and snippets.

@zhonger
Last active January 6, 2019 06:37
Show Gist options
  • Save zhonger/6c35b0c86062bc51bd81ec4956894217 to your computer and use it in GitHub Desktop.
Save zhonger/6c35b0c86062bc51bd81ec4956894217 to your computer and use it in GitHub Desktop.
mysql.yml
version: '3'
services:
db:
image: mysql:5
container_name: db
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'root'
ports:
- 3306:3306
volumes:
- ./data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
restart: always
ports:
- 9090:80
volumes:
- ./sessions:/sessions
links:
- db:db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment