louislam / dockge
- среда, 22 ноября 2023 г. в 00:00:08
A fancy, easy-to-use and reactive self-hosted docker compose.yaml stack-oriented manager
A fancy, easy-to-use and reactive self-hosted docker compose.yaml stack-oriented manager.
View Video: https://youtu.be/AWAlOQeNpgU?t=48
compose.yaml
compose.yamldocker run ... commands into compose.yamldocker compose commands
Requirements:
apt install podman-docker)/opt/stacks# Create a directory that stores your stacks and stores dockge's compose.yaml
mkdir -p /opt/stacks /opt/dockge
cd /opt/dockge
# Download the compose.yaml
curl https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml --output compose.yaml
# Start the Server
docker compose up -d
# If you are using docker-compose V1 or Podman
# docker-compose up -d
Dockge is now running on http://localhost:5001
If you want to store your stacks in another directory, you can change the DOCKGE_STACKS_DIR environment variable and volumes.
version: "3.8"
services:
dockge:
image: louislam/dockge:1
restart: unless-stopped
ports:
# Host Port:Container Port
- 5001:5001
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/app/data
# If you want to use private registries, you need to share the auth file with Dockge:
# - /root/.docker/:/root/.docker
# Your stacks directory in the host (The paths inside container must be the same as the host)
# ⚠️⚠️ If you did it wrong, your data could end up be written into a wrong path.
# ✔️✔️✔️✔️ CORRECT EXAMPLE: - /my-stacks:/my-stacks (Both paths match)
# ❌❌❌❌ WRONG EXAMPLE: - /docker:/my-stacks (Both paths do not match)
- /opt/stacks:/opt/stacks
environment:
# Tell Dockge where is your stacks directory
- DOCKGE_STACKS_DIR=/opt/stackscd /opt/dockge
docker compose pull
docker compose up -dIf you love this project, please consider giving it a ⭐.
https://github.com/louislam/dockge/issues
https://github.com/louislam/dockge/discussions
If you want to translate Dockge into your language, please read Translation Guide
"Dockge" is a coinage word which is created by myself. I hope it sounds like Dodge.
The naming idea came from Twitch emotes like sadge, bedge or wokege. They all end in -ge.
compose.yaml?The main objective of Dockge is to try to use the docker compose.yaml for everything. If you want to manage a single container, you can just use Portainer or Docker CLI.
Yes, you can. However, you need to move your compose file into the stacks directory:
/opt/stacks/<stackName>/compose.yamlDockge is built on top of Compose V2. compose.yaml also known as docker-compose.yml.