Skip to content

aimanamri/test-docker-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-docker-app

A simple project on how to set up MySQL database with Docker with phpmyadmin as client interface.

GitHub Language Count GitHub Top Language GitHub Stars GitHub Last Commit Repository Size

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

MYSQL_DATABASE

MYSQL_ROOT_PASSWORD

MYSQL_USER

MYSQL_PASSWORD

Run Locally

Clone the project

  git clone https://github.com/aimanamri/test-docker-app.git

Go to the project directory

  cd test-docker-app

Start the server using Docker

  docker-compose up -d

This project will run on localhost:8001 for phpmyadmin and localhost:80 for simple webpage.

Running SQL commands from host

   docker exec -it sql_container bash -l

Replace sql_container with your MySQL Docker container ID.

Tech Stack

Client: phymyadmin, php

Server: mysql

Feedback

If you have any feedback, please open new issue here.