Skip to content

Instantly share code, notes, and snippets.

@bogwero
Forked from LearnWebCode/docker-compose.yml
Created March 14, 2024 16:02
Show Gist options
  • Select an option

  • Save bogwero/ccc440e09bd154c73cbfae0c5ad4f9a0 to your computer and use it in GitHub Desktop.

Select an option

Save bogwero/ccc440e09bd154c73cbfae0c5ad4f9a0 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