phpmyadmin / docker

Docker container for phpMyAdmin
https://hub.docker.com/_/phpmyadmin
GNU General Public License v3.0
663 stars 453 forks source link

Make server host configurable on docker enviroment #397

Closed cassiofb-dev closed 1 year ago

cassiofb-dev commented 1 year ago

Hi, I'm trying to use phpmyadmin on Docker but it only works if the host ip address is set to 0.0.0.0 (otherwise the browser says "this connection was reset"). I wanted that it would be easier to make this change on docker compose.

It's on line 133, the ip address is hard coded to localhost.

image

My docker compose for this image:

image

cassiofb-dev commented 1 year ago

Btw, I know I can change this passing my custom config file on my host system to docker container but it's more like an enhancement issue. That would be awesome if I could change this settings with something like:

  database-manager:
    container_name: database-manager
    image: phpmyadmin:latest
    restart: always
    environment:
      PHPMYADMIN_HOST: 0.0.0.0
      PHPMYADMIN_PORT: 8080
    ports:
      - 8080:8080
    depends_on:
      - main-database
      - secondary-database
cassiofb-dev commented 1 year ago

I'm closing this issue as I don't even need to change the host (PMA_ARBITRARY solved my problem😅).

williamdes commented 1 year ago

I'm closing this issue as I don't even need to change the host (PMA_ARBITRARY solved my problems).

Indeed PMA_ARBITRARY is there to allow you to input any server address :)