docker-symfony icon indicating copy to clipboard operation
docker-symfony copied to clipboard

DB connect via HeidiSQL

Open migoth opened this issue 7 years ago • 3 comments

Is it possible to connect to db via HeidiSQL from Windows?

migoth avatar Jan 18 '18 22:01 migoth

Hi, You should try this: https://github.com/docker-library/mysql/issues/274

maxpou avatar Jan 28 '18 13:01 maxpou

Or you can add a shared port to the db config in the docker-compose.yml

db:
        image: mysql:latest
        volumes:
            - "./.data/db:/var/lib/mysql"
        environment:
            MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
            MYSQL_DATABASE: ${MYSQL_DATABASE}
            MYSQL_USER: ${MYSQL_USER}
            MYSQL_PASSWORD: ${MYSQL_PASSWORD}
        ports:
            - 3306:3306

PyRowMan avatar Jan 29 '18 14:01 PyRowMan

Indeed @PyRowMan idea looks better than mine! See: https://docs.docker.com/compose/compose-file/#ports

maxpou avatar Jan 31 '18 15:01 maxpou