dockge/README.md

156 lines
4.8 KiB
Markdown
Raw Normal View History

2023-11-11 14:18:37 +00:00
<div align="center" width="100%">
<img src="./frontend/public/icon.svg" width="128" alt="" />
</div>
2023-10-23 11:22:45 +00:00
# Dockge
2023-11-11 14:18:37 +00:00
A fancy, easy-to-use and reactive docker `compose.yaml` stack-oriented manager.
<img src="https://github.com/louislam/dockge/assets/1336778/26a583e1-ecb1-4a8d-aedf-76157d714ad7" width="900" alt="" />
2023-11-11 16:34:21 +00:00
[View Video](https://youtu.be/AWAlOQeNpgU?t=48)
2023-11-11 16:27:05 +00:00
2023-11-11 14:18:37 +00:00
## ⭐ Features
- Manage `compose.yaml`
2023-11-11 18:11:03 +00:00
- Create/Edit/Start/Stop/Restart/Delete
- Update Docker Images
2023-11-11 14:18:37 +00:00
- Interactive Editor for `compose.yaml`
- Interactive Web Terminal
- Reactive
- Everything is just responsive. Progress (Pull/Up/Down) and terminal output are in real-time
- Easy-to-use & fancy UI
- If you love Uptime Kuma's UI/UX, you will love this too
- Convert `docker run ...` commands into `compose.yaml`
2023-11-11 17:55:11 +00:00
- File based structure
- Dockge won't kidnap your compose files, they stored on your drive as usual. You can interact with them using normal `docker compose` commands
<img src="https://github.com/louislam/dockge/assets/1336778/cc071864-592e-4909-b73a-343a57494002" width=300 />
2023-11-11 14:18:37 +00:00
## 🔧 How to Install
Requirements:
- [Docker CE](https://docs.docker.com/engine/install/) 20+ is recommended
- [Docker Compose V2](https://docs.docker.com/compose/install/linux/)
- OS:
- As long as you can run Docker CE, it should be fine, but:
- Debian/Raspbian Buster or lower is not supported, please upgrade to Bullseye
- Arch: armv7, arm64, amd64 (a.k.a x86_64)
### Basic
2023-11-11 17:55:11 +00:00
- Default Stacks Directory: `/opt/stacks`
- Default Port: 5001
2023-11-11 14:18:37 +00:00
```
# 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 Server
docker compose up -d
# If you are using docker-compose V1
# docker-compose up -d
```
2023-11-11 17:55:11 +00:00
Dockge is now running on http://localhost:5001
2023-11-11 14:18:37 +00:00
### Advanced
If you want to store your stacks in another directory, you can change the `DOCKGE_STACKS_DIR` environment variable and volumes.
2023-11-11 16:27:05 +00:00
For example, if you want to store your stacks in `/my-stacks`:
2023-11-11 14:18:37 +00:00
```yaml
version: "3.8"
services:
dockge:
image: louislam/dockge:1
restart: unless-stopped
ports:
2023-11-11 16:27:05 +00:00
# Host Port:Container Port
2023-11-11 14:18:37 +00:00
- 5001:5001
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/app/data
2023-11-11 16:27:05 +00:00
# If you want to use private registries, you need to share the auth file with Dockge:
# - /root/.docker/:/root/.docker
2023-11-11 14:18:37 +00:00
# Your stacks directory in the host
# (The paths inside container must be the same as the host)
- /my-stacks:/my-stacks
environment:
# Tell Dockge where is your stacks directory
- DOCKGE_STACKS_DIR=/my-stacks
```
## How to Update
```bash
cd /opt/stacks
docker compose pull
docker compose up -d
```
2023-11-11 16:27:05 +00:00
## Screenshots
![](https://github.com/louislam/dockge/assets/1336778/7139e88c-77ed-4d45-96e3-00b66d36d871)
![](https://github.com/louislam/dockge/assets/1336778/f019944c-0e87-405b-a1b8-625b35de1eeb)
![](https://github.com/louislam/dockge/assets/1336778/a4478d23-b1c4-4991-8768-1a7cad3472e3)
2023-11-11 14:18:37 +00:00
## Motivations
- I have been using Portainer for some time, but for the stack management, I am sometimes not satisfied with it. For example, sometimes when I try to deploy a stack, the loading icon keeps spinning for a few minutes without progress. And sometimes error messages are not clear.
- Try to develop with ES Module + TypeScript (Originally, I planned to use Deno or Bun.js, but they do not support for arm64, so I stepped back to Node.js)
If you love this project, please consider giving this project a ⭐.
## FAQ
#### "Dockge"?
"Dockge" is a coinage word which is created by myself. I hope it sounds like `Badge` but replacing with `Dock` - `Dock-ge`.
The naming idea was coming from Twitch emotes like `sadge`, `bedge` or `wokege`. They are all ending with `-ge`.
2023-11-11 17:55:11 +00:00
If you are not comfortable with the pronunciation, you can call it `Dockage`.
2023-11-11 14:18:37 +00:00
#### Can I manage a single container without `compose.yaml`?
The main objective of Dockge is that try to use docker `compose.yaml` for everything. If you want to manage a single container, you can just use Portainer or Docker CLI.
#### Can I manage existing stacks?
Yes, you can. However, you need to move your compose file into the stacks directory:
1. Stop your stack
2. Move your compose file into `/opt/stacks/<stackName>/compose.yaml`
3. In Dockge, click the " Scan Stacks Folder" button in the top-right corner's dropdown menu
4. Now you should see your stack in the list
## More Ideas?
- Stats
- File manager
- App store for yaml templates
- Get app icons
- Switch Docker context
- Support Dockerfile and build
- Support Docker swarm
# Others
Dockge is built on top of [Compose V2](https://docs.docker.com/compose/migrate/). `compose.yaml` is also known as `docker-compose.yml`.