fl0ppy-d1sk / bunkerized-phpmyadmin

phpMyAdmin Docker image focused on security.
https://www.bunkerity.com/category/bunkerized-phpmyadmin/
6 stars 2 forks source link

ERROR - Failed during configuration: Have not found any log file for pma-filter jail #2

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi @bunkerity ,

Hope you are all well !

I tried in a docker-compose with traefik as reverse proxy to setup "bunkerized-phpmyadmin" but I have an error while starting the container.

Screenshot 2020-12-09 at 08 18 54

Here is an excerpt of my docker-compose:

  phpmyadmin:
    image: lucmichalski/bunkerized-phpmyadmin:latest
    container_name: phpmyadmin
    build:
      context: .docker/bunkerized-phpmyadmin
      dockerfile: Dockerfile    
      args:
      - PMA_VERSION=5.0.4
    expose:
    - 80
    - 443
    hostname: phpmyadmin
    labels:
    - "org.label-schema.group=admin"
    - "traefik.enable=true"
    - "traefik.docker.network=web"
    - "traefik.http.routers.phpmyadmin.rule=Host(`xxxx-xxxx.xxx-network.com`) && PathPrefix(`/devops/pma`)"
    - 'traefik.http.routers.phpmyadmin.tls=true'
    - 'traefik.http.routers.phpmyadmin.tls.certresolver=letsencrypt'
    - "traefik.http.routers.phpmyadmin.service=phpmyadmin@docker"
    - "traefik.http.routers.phpmyadmin.entrypoints=https"
    - "traefik.http.services.phpmyadmin.loadbalancer.server.port=80"  
    - "traefik.http.middlewares.phpmyadmin.compress=true"
    environment:
    - AUTO_LETS_ENCRYPT=no 
    - REDIRECT_HTTP_TO_HTTPS=no
    - SERVER_NAME=xxxx-xxxx.xxx-network.com
    - PMA_ABSOLUTE_URI=/devops/pma
    - SERVERS_1_host=mariadb
    - SERVERS_1_port=3306
    - SERVERS_1_AllowRoot=false
    - SERVERS_1_user=${MYSQL_USER}
    - SERVERS_1_password=${MYSQL_PASSWORD}
    networks:
    - internal
    - web
    depends_on:
    - mariadb
    volumes:
    - pma-logs:/var/log

What can I do to fix it ? Thanks for any insights or inputs on that issue mate :-)

Cheers, Luc Michalski

ghost commented 3 years ago

And if I comment the following lines:

 #volumes:
 #    - pma-logs:/var/log

I still have a problem for access pma from the port 80.

Cheers, Luc Michalski