Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aimanamri/test-docker-app
https://github.com/aimanamri/test-docker-app
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/aimanamri/test-docker-app
- Owner: aimanamri
- Created: 2023-05-15T03:57:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-11T02:50:49.000Z (5 months ago)
- Last Synced: 2024-08-11T04:55:11.065Z (5 months ago)
- Language: PHP
- Size: 361 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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.
## 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).