Operations 7 min read

Simplify Docker Compose Deployments with Dockge: Visual Management Guide

Dockge is a sleek, open‑source visual tool for Docker Compose that lets you manage compose.yaml files, edit stacks, run containers, view logs, and access an integrated web terminal, enabling one‑click batch deployment and easier container operations without manual CLI commands.

macrozheng
macrozheng
macrozheng
Simplify Docker Compose Deployments with Dockge: Visual Management Guide

Introduction

Dockge is a visually appealing, easy‑to‑use Docker Compose visual management tool that already has

17k+ stars

on GitHub.

Features

Provides compose.yaml file management with Create/Edit/Start/Stop/Restart/Delete operations and image updates.

Offers an interactive compose.yaml editor.

Includes an interactive web terminal.

Automatically converts

docker run

commands into compose.yaml scripts.

Supports responsive real‑time output of all information.

Features a simple, user‑friendly UI with a cool design.

Installation

Install Dockge via Docker:

<code>docker pull louislam/dockge:1</code>

Run the container with the required environment variables and volume mounts:

<code>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:1</code>

After the container starts, open

http://<your‑host>:5001

to create an admin account and access the Dockge web UI.

Usage Example

This example deploys a Spring Boot application and a MySQL database using Dockge.

The compose.yaml used is:

<code>version: '3'
services:
  # MySQL service
  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

  # Spring Boot service
  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/logs
</code>

In Dockge, click the

+Compose

button, paste the above script, and press

Deploy

to launch the stack.

After deployment, you can view container logs, restart, stop, or delete services directly from the UI.

To access a container’s shell, click the

Bash

button (e.g., for the MySQL container).

Dockge also provides a web terminal (click the

Terminal

button) to run commands on the host, where you can see both MySQL and the Spring Boot containers running.

The Spring Boot container includes a Swagger API; you can test it at

http://<your‑host>:8080/swagger-ui/

to verify database connectivity.

Summary

Dockge offers a clean, user‑friendly visual interface for Docker Compose, allowing one‑click batch deployments and simplifying container management without needing to type complex CLI commands.

Project Address

https://github.com/louislam/dockge

DockerDevOpsContainer ManagementDocker ComposeDockge
macrozheng
Written by

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.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.