Skip to content

Instantly share code, notes, and snippets.

@asafedainez
Created September 17, 2022 16:52
Show Gist options
  • Save asafedainez/2a884043e4576a919bc1ed94aa96ef1f to your computer and use it in GitHub Desktop.
Save asafedainez/2a884043e4576a919bc1ed94aa96ef1f to your computer and use it in GitHub Desktop.
Docker Compose MySQL
version: '3'
services:
mysql:
image: mysql
command: --default-authentication-plugin=mysql_native_password
container_name: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
# MYSQL_USER: mysql
# MYSQL_PASSWORD: mysql*
# MYSQL_DATABASE: test
ports:
- 3306:3306
# volumes:
# - ./db_data:/var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment