Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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


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

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# 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

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

Go to the project directory

```bash
cd test-docker-app
```
Start the server using Docker

```bash
docker-compose up -d
```
This project will run on `localhost:8001` for phpmyadmin and `localhost:80` for simple webpage.

## Running SQL commands from host
```bash
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](https://github.com/aimanamri/test-docker-app/issues/new).