mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 08:46:24 +02:00
68 lines
1.8 KiB
YAML
68 lines
1.8 KiB
YAML
services:
|
|
api_server:
|
|
build:
|
|
context: api_server
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "18083:80"
|
|
healthcheck:
|
|
test: ["CMD", "curl" ,"http://localhost:80/healthz"]
|
|
interval: 5s
|
|
retries: 20
|
|
|
|
chatbot_ui:
|
|
build:
|
|
context: ../../chatbot_ui
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "18080:8080"
|
|
environment:
|
|
- CHAT_COMPLETION_ENDPOINT=http://host.docker.internal:10000/v1 #this is only because we are running the sample app in the same docker container environemtn as archgw
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
opentelemetry:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-opentelemetry
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -sf http://localhost:13133 || exit 1"]
|
|
interval: 1s
|
|
timeout: 120s
|
|
retries: 120
|
|
start_period: 5s
|
|
command: ["--config=/etc/otel-collector-config.yaml"]
|
|
ports:
|
|
- "${PORT_UI:-55679}:55679"
|
|
- "${PORT_GRPC:-4317}:4317"
|
|
- "${PORT_HTTP:-4318}:4318"
|
|
|
|
prometheus:
|
|
image: prom/prometheus
|
|
container_name: prometheus
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yaml'
|
|
ports:
|
|
- 9090:9090
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./prometheus:/etc/prometheus
|
|
- ./prom_data:/prometheus
|
|
profiles:
|
|
- monitoring
|
|
|
|
grafana:
|
|
image: grafana/grafana
|
|
container_name: grafana
|
|
ports:
|
|
- 3000:3000
|
|
restart: unless-stopped
|
|
environment:
|
|
- GF_SECURITY_ADMIN_USER=admin
|
|
- GF_SECURITY_ADMIN_PASSWORD=grafana
|
|
volumes:
|
|
- ./grafana:/etc/grafana/provisioning/datasources
|
|
- ./grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/main.yaml
|
|
- ./grafana/dashboards:/var/lib/grafana/dashboards
|
|
profiles:
|
|
- monitoring
|