Skip to content

Commit f4eaaf6

Browse files
authored
Merge pull request #49 from kshashikumar/UAT
updated docker setup
2 parents ffbedd8 + 490742f commit f4eaaf6

File tree

4 files changed

+41
-4
lines changed

4 files changed

+41
-4
lines changed

README.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,44 @@ MYSQL GUI can be installed in multiple ways:
8282

8383
### From Docker Hub
8484

85-
To be added soon.
85+
You can run MYSQL GUI using Docker for easy setup and deployment. Follow the steps below to get started:
86+
87+
### Running with Docker Compose
88+
89+
To run MYSQL GUI with Docker Compose, use the following `docker-compose.yml` file:
90+
91+
```yaml
92+
version: "3"
93+
94+
services:
95+
mysql-gui:
96+
container_name: "mysql-gui"
97+
image: shashikumarkasturi/mysql-gui
98+
restart: always
99+
ports:
100+
- "5000:5000"
101+
environment:
102+
- MYSQL_URL=mysql://root:[email protected]:3306
103+
```
104+
105+
### Steps to Run
106+
107+
1. Create a `docker-compose.yml` file in your project directory and paste the configuration above.
108+
2. Start the container using the following command:
109+
110+
```bash
111+
docker-compose up -d
112+
```
113+
114+
This command will start MYSQL GUI in detached mode, running in the background. 3. Once the container is running, open your browser and navigate to <http://localhost:5000> to use MYSQL GUI. 4. To stop the container, run:
115+
116+
```bash
117+
docker-compose down
118+
```
119+
120+
### Environment Variables
121+
122+
- **MYSQL_URL**: Replace mysql://root:[email protected]:3306 with the URL of your MySQL database if it's hosted elsewhere or has different credentials.
86123

87124
## Usage
88125

docker-compose-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ services:
1010
ports:
1111
- "5000:5000"
1212
environment:
13-
- MYSQL_URL=mysql://root:root@localhost:3306
13+
- MYSQL_URL=mysql://root:root@host.docker.internal:3306

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ services:
88
ports:
99
- "5000:5000"
1010
environment:
11-
- MYSQL_URL=mysql://root:root@localhost:3306
11+
- MYSQL_URL=mysql://root:root@host.docker.internal:3306

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mysql-gui",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "A GUI application for mysql, which helps developers in faster development",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)