Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 53 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,18 @@ services:
condition: service_healthy
somleng-switch:
condition: service_healthy
rating-engine-api:
condition: service_healthy
networks:
default:
aliases:
- api.somleng.dev
healthcheck:
test: ["CMD-SHELL", "wget --server-response --spider --quiet http://0.0.0.0:3000/health_checks 2>&1 | grep '200 OK' > /dev/null"]
test:
[
"CMD-SHELL",
"wget --server-response --spider --quiet http://0.0.0.0:3000/health_checks 2>&1 | grep '200 OK' > /dev/null",
]
interval: 10s
timeout: 5s
retries: 10
Expand All @@ -57,7 +63,7 @@ services:
ws:
image: anycable/anycable-go:latest-alpine
ports:
- '8080:8080'
- "8080:8080"
environment:
REDIS_URL: redis://redis:6379/0
ANYCABLE_HOST: "0.0.0.0"
Expand All @@ -79,7 +85,11 @@ services:
anycable:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget --server-response --spider --quiet http://0.0.0.0:8080/health 2>&1 | grep '200 OK' > /dev/null"]
test:
[
"CMD-SHELL",
"wget --server-response --spider --quiet http://0.0.0.0:8080/health 2>&1 | grep '200 OK' > /dev/null",
]
interval: 10s
timeout: 5s
retries: 10
Expand All @@ -92,7 +102,7 @@ services:
ANYCABLE_RPC_HOST: 0.0.0.0:50051
ANYCABLE_DEBUG: 1
ports:
- '50051'
- "50051"
depends_on:
<<: *somleng_depends_on
healthcheck:
Expand All @@ -114,7 +124,11 @@ services:
freeswitch:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget --server-response --spider --quiet http://0.0.0.0:8080/health_checks 2>&1 | grep '200 OK' > /dev/null"]
test:
[
"CMD-SHELL",
"wget --server-response --spider --quiet http://0.0.0.0:8080/health_checks 2>&1 | grep '200 OK' > /dev/null",
]
interval: 10s
timeout: 5s
retries: 10
Expand Down Expand Up @@ -149,10 +163,43 @@ services:
profiles:
- donotstart
healthcheck:
test: ["CMD-SHELL", "wget --server-response --spider --quiet http://localhost:3210 2>&1 | grep '200 OK' > /dev/null"]
test:
[
"CMD-SHELL",
"wget --server-response --spider --quiet http://localhost:3210 2>&1 | grep '200 OK' > /dev/null",
]
interval: 10s
timeout: 5s
retries: 10

rating-engine-api:
image: ghcr.io/somleng/rating-engine:latest-debug
depends_on:
redis:
condition: service_healthy
db:
condition: service_healthy
environment:
STORDB_DBNAME: "cgrates_test"
STORDB_USER: "postgres"
STORDB_PASSWORD: "password"
STORDB_HOST: db
STORDB_PORT: 5432
DATADB_HOST: "redis"
DATADB_USER: ""
DATADB_PORT: 6379
DATADB_DBNAME: 2
CONNECTION_MODE: "*localhost"
LOG_LEVEL: 7
HTTP_LISTEN_ADDRESS: "0.0.0.0:2080"
BOOTSTRAP_DB: "true"
SERVER_MODE: "api"
JSON_RPC_USERNAME: "somleng"
JSON_RPC_PASSWORD: "password"
expose:
- "2080/tcp"
ports:
- "2080:2080"

volumes:
db_data: