How to Deploy Apps Visually with Dockge – A Docker Compose GUI Guide
This guide introduces Dockge, a sleek Docker Compose visual manager, and walks through installing it via Docker, creating stacks, and deploying a Spring Boot and MySQL application with one‑click operations, including logs, terminal access, and API testing.
Overview
Dockge is a web‑based Docker Compose management UI that supports creating, editing, starting, stopping, restarting and deleting services defined in compose.yaml. It includes an interactive compose editor, a built‑in web terminal, automatic conversion of docker run commands to compose files, and real‑time log output.
Installation
Run Dockge as a Docker container. Example:
docker pull louislam/dockge:1 docker run -p 5001:5001 --name dockge \
-e "DOCKGE_STACKS_DIR=/opt/stacks" \
-e "DOCKGE_ENABLE_CONSOLE=true" \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /mydata/dockge/data:/app/data \
-v /mydata/dockge/stacks:/opt/stacks \
-d louislam/dockge:1After the container starts, open http://<em>host</em>:5001 in a browser and create an admin account.
Example: Deploy Spring Boot + MySQL
The following compose.yaml defines a MySQL 5.7 service and a Spring Boot service ( mall-tiny-docker) with ports, volumes and environment variables:
version: '3'
services:
db:
image: mysql:5.7
container_name: mysql2
ports:
- 3306:3306
volumes:
- /mydata/mysql2/log:/var/log/mysql
- /mydata/mysql2/data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
mall-tiny-docker:
image: mall-tiny/mall-tiny-docker:1.0-SNAPSHOT
container_name: mall-tiny-docker
ports:
- 8080:8080
volumes:
- /etc/localtime:/etc/localtime
- /mydata/app/mall-tiny-docker/logs:/var/logsIn Dockge’s UI click the +Compose button, paste the file, give the stack a name and press Deploy. Dockge creates and starts both containers.
Post‑deployment actions:
View real‑time logs.
Restart, stop or delete containers with a single click.
Open an interactive Bash session inside a container via the Bash button.
Use the built‑in web terminal ( Terminal button) to run host commands.
The Spring Boot service exposes Swagger UI at http://<em>host</em>:8080/swagger-ui/, allowing verification of database connectivity.
Project Repository
https://github.com/louislam/dockge
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
macrozheng
Dedicated to Java tech sharing and dissecting top open-source projects. Topics include Spring Boot, Spring Cloud, Docker, Kubernetes and more. Author’s GitHub project “mall” has 50K+ stars.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
