docker-compose-development icon indicating copy to clipboard operation
docker-compose-development copied to clipboard

MySQL 8 support

Open peterjaap opened this issue 4 years ago • 2 comments

We need it for Akeneo 4 and 5. Magento 2 can now run on MySQL 8 too.

peterjaap avatar Mar 10 '21 14:03 peterjaap

docker-custom.yml;

version: "3"

volumes:
  dockerdev-mysql8-volume:
    external: true

services:
  mysql8:
    image: mysql:8
    container_name: dockerdev-mysql8
    volumes:
      - ./conf.d/mysql/my.cnf:/etc/my.cnf.d/development.cnf:ro
      - dockerdev-mysql8-volume:/var/lib/mysql:rw
    environment:
      - MYSQL_ROOT_PASSWORD
    ports:
      - 127.0.0.1:3307:3307

You can then access it through dev myroot -h mysql8 or use mysql -h mysql8 -u root -pPASSWORD where PASSWORD is in your ~/development/.env.

peterjaap avatar Sep 16 '22 09:09 peterjaap

@JeroenBoersma can you add this to this repo so we can access the MySQL 8 host with our regular user?

peterjaap avatar Sep 16 '22 09:09 peterjaap