Skip to content

Instantly share code, notes, and snippets.

@mrsinguyen
Created November 6, 2024 01:46
Show Gist options
  • Save mrsinguyen/f7beb12ab66c8826b1b40b694c219ff8 to your computer and use it in GitHub Desktop.
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'
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