Dorokhov.codes
phpmyadmin
Adding a service to the docker-compose.yml
:
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- 8080:80
environment:
- PMA_ARBITRARY=1
PMA_ARBITRARY - when set to 1 connection to the arbitrary server will be allowed.
In order to save time we can specify MySQL credentials in the environment section:
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- 8080:80
environment:
- PMA_HOST=db
- PMA_USER=wordpress
- PMA_PASSWORD=wordpress
- UPLOAD_LIMIT=3000M
Notes
Don’t forget to set a network for the container if it’s necessary:
# Example:
networks:
- sail