-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.16 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
services:
sip-server:
build: .
# image: ${REGISTRY}sip-server:1.0.2
network_mode: host
volumes:
- ./output-users:/usr/local/freeswitch/conf/directory/autousers/
- ./volume-configs:/usr/local/freeswitch/conf/callcenter_config/
restart: always
env_file:
- .env
logging:
driver: "json-file"
options:
max-size: "2048m"
depends_on:
- sip-esl
healthcheck:
test: ["CMD", "pgrep", "freeswitch"]
interval: 10s
timeout: 5s
retries: 5
sip-esl:
build: on_call
restart: always
ports:
- 7000:7000
env_file:
- .env
logging:
driver: "json-file"
options:
max-size: "2048m"
generate-users:
image: python:3.10-alpine
depends_on:
sip-server:
condition: service_healthy
volumes:
- ./generate_users.py:/generate_users.py
- ./input-users:/input-users
- ./output-users:/output-users
command: ["python3", "generate_users.py"]
stun-server:
image: coturn/coturn:latest
network_mode: host
restart: always
logging:
driver: "json-file"
options:
max-size: "2048m"