Skip to content

Latest commit

 

History

History
78 lines (49 loc) · 1.88 KB

README.md

File metadata and controls

78 lines (49 loc) · 1.88 KB

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.