Skip to content

Instantly share code, notes, and snippets.

@dejanu
Created July 19, 2023 09:27
Show Gist options
  • Save dejanu/a8b89deaa430433637a9d8c64d46c489 to your computer and use it in GitHub Desktop.
Save dejanu/a8b89deaa430433637a9d8c64d46c489 to your computer and use it in GitHub Desktop.
mysql radu
version: '3.1'
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
adminer:
image: adminer
restart: always
ports:
- 8080:8080
@dejanu
Copy link
Author

dejanu commented Jul 19, 2023

Start it standalone:

docker run --name some-mysql -v /my/custom:/etc/mysql/conf.d -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment