-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong container config file location #376
Comments
I think this is because you did forget the php open tag |
The php tags where there. I edited the issue. version: "3"
services:
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: project_phpmyadmin
ports:
- 8081:80
environment:
PMA_HOST: project_mysql_database
PMA_PORT: 3307
PMA_ARBITRARY: 1
MAX_EXECUTION_TIME: 600
MEMORY_LIMIT: 512M
UPLOAD_LIMIT: 2048M
HIDE_PHP_VERSION: true
volumes:
- ./config.inc.php:/etc/phpmyadmin/config.inc.php
restart: always
mem_limit: 512m
networks:
default:
name: project_2022 Note: The container is connecting to another mysql container on port 3307. |
First I would recommend you to use the Docker official repository (see #363): - image: phpmyadmin/phpmyadmin
+ image: phpmyadmin As it is said in https://github.com/phpmyadmin/docker#adding-custom-configuration - - ./config.inc.php:/etc/phpmyadmin/config.inc.php
+ - ./config.inc.php:/etc/phpmyadmin/config.user.inc.php Could you try again with such changes ? |
@williamdes It seems that you wondered off my original post. I didn't had a problem with running the container. The container is running just fine. It was just that the custom configuration file path was wrong in the README.md of this repo. The original |
I really do not understand, it is loaded and we have tests for that:
|
By loading I think my error appeared because I started a container without volumes and then created a Anyway, thanks for the help! My issue is invalid. |
The custom configuration is said to be placed under
/etc/phpmyadmin/config.user.inc.php
.By placing a file at the specified location with something like this in it:
will never load that file.
The actual file location in the container is specified in
/var/www/html/libraries/vendor_config.php
and it is/etc/phpmyadmin/config.inc.php
.The text was updated successfully, but these errors were encountered: