Created
November 6, 2024 01:46
-
-
Save mrsinguyen/f7beb12ab66c8826b1b40b694c219ff8 to your computer and use it in GitHub Desktop.
Local mysql 5.7 and adminer docker container, run 'docker-compose -f docker-compose.local.yml up -d'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
mysql_container: | |
platform: linux/x86_64 | |
image: mysql:5.7 | |
command: [ "mysqld", "--sql-mode=NO_ENGINE_SUBSTITUTION" ] | |
ports: [ '3306:3306' ] | |
volumes: | |
- './docker/run/mysql:/var/lib/mysql' | |
environment: | |
- MYSQL_ROOT_PASSWORD=root | |
adminer_container: | |
image: adminer:latest | |
environment: | |
ADMINER_DEFAULT_SERVER: mysql_container | |
ports: | |
- 8080:8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment