phpmyadmin Dockerfile and docker-compose.yml with self singed certificate.
docker installation documentation
docker-compose installation documentation
# Install docker
sudo curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo systemctl start docker && sudo systemctl enable docker
# Ensure installation succeed
sudo docker --version
# Install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
# Ensure installation succeed
docker-compose --version
# Run with arbitery, you can choose the DB server at login.
docker pull galbirk/phpmyadmin:self-signed
docker run --name phphmyadmin -d -e PMA_ARBITRARY=1 -p 443:443 galbirk/phpmyadmin:self-signed
phpmyadmin url: https://[ip/hostname]
git clone https://github.com/galbirk/phpmyadmin-docker-self-signed.git
cd phpmyadmin-docker-self-signed
docker-compose up # run docker-compose up -d for background running.
phpmyadmin url: https://[ip/hostname]
- phpmyadmin/phpmyadmin docker hub reposiroty
- CERT_VALID_DAYS=3650 --> Certificate validity time in days.
galbirk/phpmyadmin:self-signed
Gal Birkman, DevOps Engineer.
email: [email protected]
GitHub: https://github.com/galbirk