118 lines
3.7 KiB
YAML
118 lines
3.7 KiB
YAML
version: '3.9'
|
|
|
|
services:
|
|
cc-mongo:
|
|
container_name: callabacloud-mongo
|
|
image: registry.callabacloud.com/callaba-selfhosted/cc-mongo:${STACK_VERSION}-selfhosted
|
|
restart: always
|
|
network_mode: "host"
|
|
command: ["mongod", "--quiet", "--config", "/etc/mongodb.conf", "--replSet", "rs0", "--bind_ip_all", "--port", "27017"]
|
|
volumes:
|
|
- db_data:/data/db2
|
|
cc-mongo-certdb:
|
|
container_name: callabacloud-mongo-certdb
|
|
image: registry.callabacloud.com/callaba-selfhosted/cc-mongo:${STACK_VERSION}-selfhosted
|
|
restart: always
|
|
network_mode: "host"
|
|
command: ["mongod", "--quiet", "--config", "/etc/mongodb.conf", "--bind_ip_all", "--port", "27018"]
|
|
volumes:
|
|
- cert_db_data:/data/db2
|
|
|
|
cc-api:
|
|
container_name: callabacloud-api
|
|
image: registry.callabacloud.com/callaba-selfhosted/cc-api-prod:${STACK_VERSION}-selfhosted
|
|
restart: always
|
|
cap_add:
|
|
- SYS_ADMIN
|
|
devices:
|
|
- /dev/fuse
|
|
security_opt:
|
|
- apparmor:unconfined
|
|
volumes:
|
|
- records:/cc-api/recorded
|
|
- uploads:/cc-api/uploaded
|
|
- pass:/opt/volume
|
|
- certs:/cc-api/build/ssl
|
|
- configs:/cc-api/build/nginx-http-conf/
|
|
- rtmp_configs:/cc-api/build/tmp-rtmp-conf
|
|
- chunks:/mnt
|
|
- ./webrtc/livekit.yaml:/etc/livekit.yaml
|
|
- ./webrtc/egress.conf:/etc/egress.conf
|
|
- ./webrtc/ingress.conf:/etc/ingress.conf
|
|
- ./webrtc/ndi-config.v1.json:/etc/ndi-config.v1.json
|
|
- ./webrtc/etc-ntpsec-ntp.conf:/etc/etc-nuspec-ntp.conf
|
|
# external
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /dev/fuse:/dev/fuse
|
|
network_mode: "host"
|
|
extra_hosts:
|
|
- "localhost-event:127.0.0.1"
|
|
privileged: true
|
|
depends_on:
|
|
- cc-mongo
|
|
|
|
cc-nginx:
|
|
container_name: callabacloud-nginx
|
|
image: registry.callabacloud.com/callaba-selfhosted/cc-nginx-prod:${STACK_VERSION}-selfhosted
|
|
restart: always
|
|
volumes:
|
|
- certs:/etc/ssl/callaba/
|
|
- configs:/etc/nginx/conf.d
|
|
- rtmp_configs:/etc/nginx/rtmp_conf.d/
|
|
- chunks:/mnt
|
|
- /dev/fuse:/dev/fuse
|
|
cap_add:
|
|
- SYS_ADMIN
|
|
devices:
|
|
- /dev/fuse
|
|
security_opt:
|
|
- apparmor:unconfined
|
|
network_mode: "host"
|
|
extra_hosts:
|
|
- "localhost-event:127.0.0.1"
|
|
depends_on:
|
|
- cc-api
|
|
|
|
cc-front:
|
|
container_name: callabacloud-front
|
|
image: registry.callabacloud.com/callaba-selfhosted/cc-front-prod:${STACK_VERSION}-selfhosted
|
|
restart: always
|
|
network_mode: "host"
|
|
|
|
cc-monitoring:
|
|
image: registry.callabacloud.com/callaba-selfhosted/cc-monitoring:${STACK_VERSION}
|
|
container_name: callabacloud-monitoring
|
|
restart: always
|
|
volumes:
|
|
- /proc:/host/proc:ro
|
|
- /sys:/host/sys:ro
|
|
- /:/rootfs:ro
|
|
- grafana_data:/var/lib/grafana/
|
|
- prometheus_data:/data/
|
|
ports:
|
|
- 127.0.0.1:3031:3031
|
|
|
|
volumes:
|
|
records:
|
|
name: callabacloud-records
|
|
uploads:
|
|
name: callabacloud-uploads
|
|
db_data:
|
|
name: callabacloud-db_data
|
|
cert_db_data:
|
|
name: callabacloud-cert_db_data
|
|
pass:
|
|
name: callabacloud-pass
|
|
certs:
|
|
name: callabacloud-certs
|
|
grafana_data:
|
|
name: callabacloud-grafana_data
|
|
prometheus_data:
|
|
name: callabacloud-prometheus_data
|
|
configs:
|
|
name: callabacloud-configs
|
|
rtmp_configs:
|
|
name: callabacloud-rtmp_configs
|
|
chunks:
|
|
name: callabacloud-chunks
|