- Forums
- Linux
- Install PHPMyAdmin in Lavarel Docker Container Sail
these are the instructions to install Install PHPMyAdmin in Lavarel Docker Container Sail [5031], Last Updated: Mon Jun 24, 2024
edwin
Fri Dec 16, 2022
0 Comments
914 Visits
To install PHPMyAdmin in a Docker Container for Laravel Sail, Follow these steps:
- Stop your container with sail: $ sail stop
- Open docker-compose.yml
- After mailhog add the following property:
-
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
depends_on:
- mysql
ports:
- "8081:80"
environment:
PMA_HOST: mysql
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
networks:
- sail
- Start the docker container again: $ sail up -d
- Open your browswer to: http://localhost:8081/index.php
- Done
Thats it!