Deploy Apps Visually with Dockge: A Step‑by‑Step Docker Compose Guide
This guide introduces Dockge, a sleek Docker Compose GUI, walks through installing it via Docker, demonstrates a Spring Boot + MySQL stack definition, and shows how to create, deploy, monitor, and manage containers through Dockge’s web interface.
Overview
Dockge is a web UI for managing Docker Compose stacks. It supports compose.yaml file management, an interactive editor, a web terminal, automatic conversion of docker run commands to compose files, and real‑time log streaming.
Installation
Pull the Docker image and run a 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, access the UI at http://HOST:5001 and create an administrator account.
Deploying a Stack
Example compose.yaml that runs a MySQL 5.7 container and a Spring Boot application:
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 the Dockge UI, click +Compose, paste the file, give the stack a name, and press Deploy. Both containers start simultaneously.
Post‑deployment Operations
View real‑time logs, restart, stop, or delete the stack from the list.
Click the Bash button to open an interactive shell inside a selected container.
Use the Terminal button (top‑right) to open a web‑based terminal that shows all running containers.
The Spring Boot container exposes Swagger UI at http://HOST:8080/swagger-ui/, allowing API testing against the MySQL service.
Project Repository
https://github.com/louislam/dockge
Su San Talks Tech
Su San, former staff at several leading tech companies, is a top creator on Juejin and a premium creator on CSDN, and runs the free coding practice site www.susan.net.cn.
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.
