Skip to content

Commit

Permalink
build: add grafana root url for deployed instances (#426)
Browse files Browse the repository at this point in the history
* build: add grafana root url for deployed instances

* build: update internal port + .env.example

* build: add volumes

* chore: remove hardcoded IP and add port to dev compose

* undo variable internal postgres db port

* add changes

---------

Co-authored-by: Jorge Antonio <matroid@outlook.com>
  • Loading branch information
maschad and jorgeantonio21 authored Feb 20, 2025
1 parent fb6d191 commit b7325d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ATOMA_DAEMON_PORT=3001
# Currently available docker compose profiles:
#
# All possible values are:
#
#
# 1. chat_completions_vllm
# 2. chat_completions_mistralrs_cpu
# 3. chat_completions_vllm_cpu, running this profile requires a CPU with AVX2 support
Expand All @@ -39,7 +39,7 @@ ATOMA_DAEMON_PORT=3001
#
# Setting the COMPOSE_PROFILES environment variable will start all services listed in the value, e.g.
# COMPOSE_PROFILES=chat_completions_vllm will start the chat completions server and the postgres database
#
#
# Please change it accordingly to which inference services you want to run, and which database you want to use (either PostgresSQL or SQLite)
COMPOSE_PROFILES=chat_completions_vllm

Expand All @@ -51,6 +51,7 @@ PROMETHEUS_PORT=9090

# Grafana Configuration
GRAFANA_PORT=30001
GF_SERVER_ROOT_URL=http://localhost:30001/

# ----------------------------------------------------------------------------------
# chat completions server
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ services:
networks:
- atoma-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB} -p ${POSTGRES_PORT} || exit 1"]
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB} -p 5432 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
Expand Down
8 changes: 5 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ services:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT:-5432}:5432"
env_file: .env
networks:
- atoma-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB} -p ${POSTGRES_PORT} || exit 1"]
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB} -p 5432 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
Expand Down Expand Up @@ -115,6 +115,8 @@ services:
volumes:
- grafana_data:/var/lib/grafana
env_file: .env
environment:
- GF_SERVER_ROOT_URL=http://${GRAFANA_DOMAIN}:${GRAFANA_PORT:-30001}/
networks:
- atoma-network
healthcheck:
Expand Down

0 comments on commit b7325d8

Please sign in to comment.