middleware-manager/docker-compose.yml
hhftechnologies c459063475
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
Tests / Run Tests (push) Waiting to run
Tests / Lint (push) Waiting to run
Tests / Build (push) Blocked by required conditions
Add Traefik Manager module, UI and build
Introduce a standalone Traefik Manager mode and SPA: new internal/traefikmanager package (config, helpers, files, settings, runtime, handlers, server, types) with tests and supporting testdata; add a new React/TypeScript SPA under traefik-ui/ (components, pages, build config, tests). Update build & packaging: modify Dockerfile to build the traefik-ui app and include it in the final image, add new Makefile targets for building/running both UIs and modes, and add a traefik-manager service to docker-compose (with MODE env). Add runtime config loading and README docs for the new MODE, plus .gitignore entries for traefik-ui artifacts. Small updates to main.go and added traefik_mode.go.
2026-04-15 12:22:52 +05:30

59 lines
1.3 KiB
YAML

version: "3.8"
services:
middleware-manager:
build:
context: .
dockerfile: Dockerfile
container_name: middleware-manager
restart: unless-stopped
volumes:
- ./data:/data
- ./config/traefik/conf:/conf
environment:
- MODE=middleware-manager
- PANGOLIN_API_URL=http://pangolin:3001/api/v1
- TRAEFIK_CONF_DIR=/conf
- DB_PATH=/data/middleware.db
- PORT=3456
ports:
- "3456:3456"
networks:
- pangolin
traefik-manager:
build:
context: .
dockerfile: Dockerfile
container_name: traefik-manager
restart: unless-stopped
volumes:
- ./traefik-config:/config
- ./traefik-manager-data:/app/config
- ./traefik-manager-backups:/app/backups
environment:
- MODE=traefik-manager
- PORT=3456
- TM_CONFIG_DIR=/config
- TM_SETTINGS_PATH=/app/config/manager.yml
- TM_BACKUP_DIR=/app/backups
- TRAEFIK_API_URL=http://traefik:8080
- TM_UI_PATH=/app/traefik-ui/dist
ports:
- "3457:3456"
networks:
- pangolin
mock-pangolin:
image: nginx:alpine
container_name: mock-pangolin
volumes:
- ./test/mock-api:/usr/share/nginx/html
ports:
- "3001:80"
networks:
- pangolin
networks:
pangolin:
external: true