Closed lanedirt closed 2 weeks ago
@lanedirt Good idea, but rather than coding it and maintaining it, you could just attach phpmyadmin to the docker setup: https://hub.docker.com/_/phpmyadmin?tab=description (and lock it down to IP etc and user / pass)
And then you can access it and export / import it that way?
@lanedirt Good idea, but rather than coding it and maintaining it, you could just attach phpmyadmin to the docker setup: https://hub.docker.com/_/phpmyadmin?tab=description (and lock it down to IP etc and user / pass)
And then you can access it and export / import it that way?
Great suggestion! On second thought, you're absolutely right that coding and maintaining this ourselves could add unnecessary complexity. Especially when trying to import a new database while authenticated with a user from the existing database.
I'll update the issue 👍.
Issue Description
Add a phpMyAdmin Docker container to the development setup in
docker-compose.yml
for easy database management, with default features for database export/import. Ensure the setup is secure for potential production deployment, allowing for customization based on environment.Key Requirements
Development Default:
Enable the phpMyAdmin container by default in the development
docker-compose.yml
setup.Production Toggle:
Keep the phpMyAdmin container disabled in production by default, see
docker-compose.prod.yml
. Perhaps we could use.env
file options to allow server admins to enable or disable phpMyAdmin as needed, ensuring it isn’t exposed unintentionally in development and/or production environments.Security Enhancements:
.env.example
; improve security by generating unique credentials during the initial Docker setup.Note: Document these setup steps and environment-specific configurations for ease of deployment and maintenance.