Skip to content

Instantly share code, notes, and snippets.

@LearnWebCode
Created December 3, 2021 04:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LearnWebCode/bc4a2b67e9b30063609aa85d908708e8 to your computer and use it in GitHub Desktop.
Save LearnWebCode/bc4a2b67e9b30063609aa85d908708e8 to your computer and use it in GitHub Desktop.
Docker compose example for YouTube WSL video.
# Use root/example as user/password credentials
version: '3.1'
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- 3306:3306
volumes:
- ./db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: example
adminer:
image: adminer
restart: always
ports:
- 8080:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment