75 lines
2.1 KiB
YAML
75 lines
2.1 KiB
YAML
name: ingress
|
|
|
|
services:
|
|
pangolin:
|
|
image: docker.io/fosrl/pangolin:latest # https://github.com/fosrl/pangolin/releases
|
|
container_name: pangolin
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./config:/app/config
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3001/api/v1/"]
|
|
interval: "10s"
|
|
timeout: "10s"
|
|
retries: 15
|
|
|
|
gerbil:
|
|
image: docker.io/fosrl/gerbil:latest # https://github.com/fosrl/gerbil/releases
|
|
container_name: gerbil
|
|
restart: unless-stopped
|
|
depends_on:
|
|
pangolin:
|
|
condition: service_healthy
|
|
command:
|
|
- --reachableAt=http://gerbil:3004
|
|
- --generateAndSaveKeyTo=/var/config/key
|
|
- --remoteConfig=http://pangolin:3001/api/v1/
|
|
volumes:
|
|
- ./config/:/var/config
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_MODULE
|
|
ports:
|
|
- 51820:51820/udp
|
|
- 21820:21820/udp
|
|
- 443:443
|
|
- 80:80
|
|
|
|
traefik:
|
|
image: docker.io/traefik:v3.6
|
|
container_name: traefik
|
|
restart: unless-stopped
|
|
|
|
network_mode: service:gerbil # Ports appear on the gerbil service
|
|
|
|
depends_on:
|
|
pangolin:
|
|
condition: service_healthy
|
|
command:
|
|
- --configFile=/etc/traefik/traefik_config.yml
|
|
volumes:
|
|
- ./config/traefik:/etc/traefik:ro # Volume to store the Traefik configuration
|
|
- ./config/letsencrypt:/letsencrypt # Volume to store the Let's Encrypt certificates
|
|
- ./config/traefik/logs:/var/log/traefik # Volume to store Traefik logs
|
|
|
|
networks:
|
|
default:
|
|
driver: bridge
|
|
name: pangolin
|
|
#enable_ipv6: true # activate if your system supports IPv6
|
|
|
|
middleware-manager:
|
|
image: hhftechnology/middleware-manager:latest
|
|
volumes:
|
|
- ./data:/data
|
|
- ./config/middleware-manager:/app/config
|
|
- ./config/traefik:/etc/traefik # Must match Traefik's static config dir
|
|
environment:
|
|
- ACTIVE_DATA_SOURCE=pangolin
|
|
- PANGOLIN_API_URL=http://pangolin:3001/api/v1
|
|
- TRAEFIK_STATIC_CONFIG_PATH=/etc/traefik/traefik_config.yml # Path inside container
|
|
- TRAEFIK_CONF_DIR=/conf
|
|
- DB_PATH=/data/middleware.db
|
|
- PORT=3456
|
|
ports:
|
|
- "3456:3456" |