-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 857 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (35 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
services:
engine:
container_name: ai-voice-connector-engine
build:
context: ../../
dockerfile: ./docker/Dockerfile
network_mode: host
volumes:
- ./conn:/app/cfg/
environment:
CONFIG_FILE: /app/cfg/simple.ini
env_file:
- .env
depends_on:
opensips:
condition: service_healthy
opensips:
container_name: ai-voice-connector-opensips
build:
dockerfile_inline: |
FROM opensips/opensips:latest
RUN apt -y update && apt -y install gettext-base
args:
OPENSIPS_CLI: true
command: -p /etc/opensips/substenv.sh
volumes:
- ./b2b:/etc/opensips/
network_mode: host
env_file:
- .env
healthcheck:
test: opensips-cli -x mi sr_get_status core | grep -q 'running'
interval: 1s
retries: 10
timeout: 2s