uptime-kuma-bridge/docker-compose-with-uptime.yml
Eliezer Croitoru 885ec7e678 1
2026-08-11 19:04:35 +03:00

43 lines
970 B
YAML

version: '3.8'
services:
# Uptime Kuma Monitoring Service
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
restart: always
ports:
- "3001:3001"
volumes:
- kuma-data:/app/data
networks:
- kuma-net
# MikroTik to Uptime Kuma Python Webhook Bridge
mikrotik-bridge:
build:
context: ./bridge
dockerfile: Dockerfile
container_name: mikrotik-kuma-bridge
restart: always
ports:
- "3000:3000"
environment:
# Internal Docker network URL pointing to the Uptime Kuma service container
- KUMA_BASE_URL=http://uptime-kuma:3001/api/push
- MAPPING_FILE=mapping.json
volumes:
# Mount mapping.json so you can edit tokens on the host without rebuilding the container
- ./bridge/mapping.json:/app/mapping.json:ro
depends_on:
- uptime-kuma
networks:
- kuma-net
networks:
kuma-net:
driver: bridge
volumes:
kuma-data: