2024-09-10 14:24:46 -07:00
services :
2024-09-20 14:38:10 -07:00
api_server :
build :
context : api_server
dockerfile : Dockerfile
ports :
- "18083:80"
healthcheck :
test : [ "CMD" , "curl" , "http://localhost:80/healthz" ]
interval : 5s
retries : 20
2024-09-17 08:47:35 -07:00
chatbot_ui :
2024-09-10 14:24:46 -07:00
build :
2024-09-17 08:47:35 -07:00
context : ../../chatbot_ui
2024-09-10 14:24:46 -07:00
dockerfile : Dockerfile
ports :
2024-10-09 15:47:32 -07:00
- "18080:8080"
2024-09-10 14:24:46 -07:00
environment :
2024-10-08 22:19:20 -07:00
- 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
2024-10-10 14:56:23 -07:00
extra_hosts :
- "host.docker.internal:host-gateway"
2024-09-10 14:24:46 -07:00
2024-10-08 16:24:08 -07:00
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"
2024-09-10 14:24:46 -07:00
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
2024-09-17 08:47:35 -07:00
profiles :
- monitoring
2024-09-10 14:24:46 -07:00
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
2024-09-17 08:47:35 -07:00
profiles :
- monitoring