-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.24 KB
/
docker-compose.yml
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
version: "3"
services:
scaipproxy:
build:
context: .
image: fonoster/scaipproxy:latest
depends_on: [redis]
environment:
DATA_SOURCE_PROVIDER: redis_data_provider
DATA_SOURCE_PARAMETERS: host=redis,port=6379
BIND_ADDR: 0.0.0.0
ports:
- '5060:5060'
- '5060:5060/udp'
- '4567:4567'
redis:
image: redis:6.0.3-alpine
command: ['redis-server', '--appendonly', 'yes']
hostname: redis
expose: [6379]
seet:
image: fonoster/seet:latest
depends_on:
provisioner:
condition: 'service_healthy'
volumes:
- ./etc/seet.json:/seet.json
- ./etc/scenarios:/scenarios
provisioner:
image: fonoster/routr-ctl:latest
depends_on:
scaipproxy:
condition: 'service_healthy'
healthcheck:
test: ["CMD-SHELL", "test -f /tmp/healthcheck.txt"]
interval: 10s
timeout: 60s
retries: 3
entrypoint: >
/bin/sh -c "
set -e;
rctl login https://scaipproxy:4567/api/v1beta1 -u admin -p changeit;
rctl create -f /config/domains.yml
rctl create -f /config/agents.yml
touch /tmp/healthcheck.txt
# Avoid exiting
sleep 600
"
volumes:
- ./config:/config:ro