feat: add mcp-servers/**
This commit is contained in:
11
src/portainer/.env.example
Normal file
11
src/portainer/.env.example
Normal file
@@ -0,0 +1,11 @@
|
||||
# Portainer version
|
||||
PORTAINER_VERSION=2.27.3-alpine
|
||||
|
||||
# Web UI port (default: 9000)
|
||||
PORTAINER_WEB_PORT_OVERRIDE=9000
|
||||
|
||||
# Edge Agent port (default: 8000)
|
||||
PORTAINER_EDGE_PORT_OVERRIDE=8000
|
||||
|
||||
# Timezone
|
||||
TZ=UTC
|
||||
51
src/portainer/README.md
Normal file
51
src/portainer/README.md
Normal file
@@ -0,0 +1,51 @@
|
||||
# Portainer
|
||||
|
||||
[English](./README.md) | [中文](./README.zh.md)
|
||||
|
||||
This service deploys Portainer CE (Community Edition), a lightweight management UI for Docker and Docker Swarm.
|
||||
|
||||
## Services
|
||||
|
||||
- `portainer`: The Portainer CE service.
|
||||
|
||||
## Environment Variables
|
||||
|
||||
| Variable Name | Description | Default Value |
|
||||
| ---------------------------- | ----------------------------------------------------------------- | --------------- |
|
||||
| PORTAINER_VERSION | Portainer image version | `2.27.3-alpine` |
|
||||
| PORTAINER_WEB_PORT_OVERRIDE | Host port mapping for Web UI (maps to port 9000 in container) | 9000 |
|
||||
| PORTAINER_EDGE_PORT_OVERRIDE | Host port mapping for Edge Agent (maps to port 8000 in container) | 8000 |
|
||||
| TZ | Timezone setting | `UTC` |
|
||||
|
||||
Please modify the `.env` file as needed for your use case.
|
||||
|
||||
## Volumes
|
||||
|
||||
- `portainer_data`: A named volume for storing Portainer data.
|
||||
- `/var/run/docker.sock`: Docker socket (required for Portainer to manage Docker).
|
||||
|
||||
## Ports
|
||||
|
||||
- `9000`: Portainer Web UI
|
||||
- `8000`: Portainer Edge Agent
|
||||
|
||||
## Security Notes
|
||||
|
||||
⚠️ **Warning**: This service mounts the Docker socket (`/var/run/docker.sock`), which grants full control over the Docker daemon. This is required for Portainer to function properly, but it means:
|
||||
|
||||
- Any compromise of the Portainer container could lead to full system compromise
|
||||
- Ensure Portainer is properly secured with strong passwords
|
||||
- Consider restricting network access to the Portainer UI
|
||||
- Keep Portainer updated to the latest version
|
||||
|
||||
## First-Time Setup
|
||||
|
||||
1. After starting the service, access Portainer at `http://localhost:9000`
|
||||
2. Create an admin user account (this is required on first launch)
|
||||
3. Choose to manage the local Docker environment
|
||||
4. You can now manage your Docker containers, images, networks, and volumes through the UI
|
||||
|
||||
## Additional Information
|
||||
|
||||
- Official Documentation: <https://docs.portainer.io/>
|
||||
- GitHub Repository: <https://github.com/portainer/portainer>
|
||||
3
src/portainer/README.zh.md
Normal file
3
src/portainer/README.zh.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Portainer
|
||||
|
||||
Portainer 是一个轻量级的管理用户界面,用于 Docker,包括 Docker Swarm 群集。 Portainer 提供了一个简单的 Web UI,可以用来管理 Docker 容器,镜像,网络和卷。
|
||||
39
src/portainer/docker-compose.yaml
Normal file
39
src/portainer/docker-compose.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
x-default: &default
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
max-file: "3"
|
||||
|
||||
services:
|
||||
portainer:
|
||||
<<: *default
|
||||
image: portainer/portainer-ce:${PORTAINER_VERSION:-2.27.3-alpine}
|
||||
ports:
|
||||
- "${PORTAINER_WEB_PORT_OVERRIDE:-9000}:9000"
|
||||
- "${PORTAINER_EDGE_PORT_OVERRIDE:-8000}:8000"
|
||||
volumes:
|
||||
# ⚠️ Security Warning: Mounting Docker socket grants full control of Docker daemon
|
||||
# This is required for Portainer to function, but ensure access is properly secured
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- portainer_data:/data
|
||||
environment:
|
||||
- TZ=${TZ:-UTC}
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:9000/api/system/status"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.00'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 128M
|
||||
|
||||
volumes:
|
||||
portainer_data:
|
||||
Reference in New Issue
Block a user