openvidu-deployment: local-meet - Refactor environment variable definitions in docker-compose files for consistency and flexibility

master
cruizba 2025-08-28 15:17:50 +02:00
parent f8e904a08d
commit fdbb9dd87b
4 changed files with 104 additions and 104 deletions

View File

@ -131,7 +131,7 @@ services:
enabled: true
interval: 10s
expiration: 768h # 32 days
mongo_url: mongodb://mongoadmin:mongoadmin@mongo:27017/?replicaSet=rs0&readPreference=primaryPreferred
mongo_url: mongodb://${MONGO_ADMIN_USERNAME:-mongoadmin}:${MONGO_ADMIN_PASSWORD:-mongoadmin}@mongo:27017/?replicaSet=rs0&readPreference=primaryPreferred
# LiveKit configuration
port: 7880
@ -144,7 +144,7 @@ services:
redis:
address: redis:6379
username: ""
password: redispassword
password: ${REDIS_PASSWORD:-redispassword}
db: 0
use_tls: false
turn:
@ -153,9 +153,9 @@ services:
relay_range_start: 40000
relay_range_end: 50000
keys:
devkey: secret
${LIVEKIT_API_KEY:-devkey}: ${LIVEKIT_API_SECRET:-secret}
webhook:
api_key: devkey
api_key: ${LIVEKIT_API_KEY:-devkey}
urls:
- http://host.docker.internal:6080/livekit/webhook
- http://openvidu-meet:6080/livekit/webhook
@ -176,11 +176,11 @@ services:
redis:
address: redis:6379
username: ""
password: redispassword
password: ${REDIS_PASSWORD:-redispassword}
db: 0
use_tls: false
api_key: devkey
api_secret: secret
api_key: ${LIVEKIT_API_KEY:-devkey}
api_secret: ${LIVEKIT_API_SECRET:-secret}
ws_url: ws://openvidu:7880
rtmp_port: 1935
whip_port: 8085
@ -196,11 +196,11 @@ services:
redis:
address: redis:6379
username: ""
password: redispassword
password: ${REDIS_PASSWORD:-redispassword}
db: 0
use_tls: false
api_key: devkey
api_secret: secret
api_key: ${LIVEKIT_API_KEY:-devkey}
api_secret: ${LIVEKIT_API_SECRET:-secret}
ws_url: ws://openvidu:7880
health_port: 9091
@ -211,8 +211,8 @@ services:
# Storage for recordings.
storage:
s3:
access_key: minioadmin
secret: minioadmin
access_key: ${MINIO_ACCESS_KEY:-minioadmin}
secret: ${MINIO_SECRET_KEY:-minioadmin}
# Default region for minio
region: us-east-1
endpoint: http://minio:9000

View File

@ -9,15 +9,15 @@ services:
- host.docker.internal:host-gateway
environment:
- LAN_PRIVATE_IP=${LAN_PRIVATE_IP:-}
- LIVEKIT_API_KEY=devkey
- LIVEKIT_API_SECRET=secret
- DASHBOARD_ADMIN_USERNAME=admin
- DASHBOARD_ADMIN_PASSWORD=admin
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin
- MEET_INITIAL_ADMIN_USER=admin
- MEET_INITIAL_ADMIN_PASSWORD=admin
- MEET_INITIAL_API_KEY=meet-api-key
- LIVEKIT_API_KEY=${LIVEKIT_API_KEY:-devkey}
- LIVEKIT_API_SECRET=${LIVEKIT_API_SECRET:-secret}
- DASHBOARD_ADMIN_USERNAME=${DASHBOARD_ADMIN_USERNAME:-admin}
- DASHBOARD_ADMIN_PASSWORD=${DASHBOARD_ADMIN_PASSWORD:-admin}
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY:-minioadmin}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY:-minioadmin}
- MEET_INITIAL_ADMIN_USER=${MEET_INITIAL_ADMIN_USER:-admin}
- MEET_INITIAL_ADMIN_PASSWORD=${MEET_INITIAL_ADMIN_PASSWORD:-admin}
- MEET_INITIAL_API_KEY=${MEET_INITIAL_API_KEY:-meet-api-key}
volumes:
- scripts:/scripts
entrypoint: /bin/sh /scripts/entrypoint_caddy.sh
@ -43,7 +43,7 @@ services:
command: >
redis-server
--bind 0.0.0.0
--requirepass redispassword
--requirepass ${REDIS_PASSWORD:-redispassword}
depends_on:
setup:
condition: service_completed_successfully
@ -56,8 +56,8 @@ services:
ports:
- 9000:9000
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
- MINIO_ROOT_USER=${MINIO_ACCESS_KEY:-minioadmin}
- MINIO_ROOT_PASSWORD=${MINIO_SECRET_KEY:-minioadmin}
- MINIO_DEFAULT_BUCKETS=openvidu-appdata
- MINIO_CONSOLE_SUBPATH=/minio-console
- MINIO_BROWSER_REDIRECT_URL=http://localhost:7880/minio-console
@ -78,8 +78,8 @@ services:
volumes:
- mongo-data:/bitnami/mongodb
environment:
- MONGODB_ROOT_USER=mongoadmin
- MONGODB_ROOT_PASSWORD=mongoadmin
- MONGODB_ROOT_USER=${MONGO_ADMIN_USERNAME:-mongoadmin}
- MONGODB_ROOT_PASSWORD=${MONGO_ADMIN_PASSWORD:-mongoadmin}
- MONGODB_ADVERTISED_HOSTNAME=mongo
- MONGODB_REPLICA_SET_MODE=primary
- MONGODB_REPLICA_SET_NAME=rs0
@ -96,9 +96,9 @@ services:
restart: unless-stopped
environment:
- SERVER_PORT=5000
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=admin
- DATABASE_URL=mongodb://mongoadmin:mongoadmin@mongo:27017/?replicaSet=rs0&readPreference=primaryPreferred
- ADMIN_USERNAME=${DASHBOARD_ADMIN_USERNAME:-admin}
- ADMIN_PASSWORD=${DASHBOARD_ADMIN_PASSWORD:-admin}
- DATABASE_URL=mongodb://${MONGO_ADMIN_USERNAME:-mongoadmin}:${MONGO_ADMIN_PASSWORD:-mongoadmin}@mongo:27017/?replicaSet=rs0&readPreference=primaryPreferred
depends_on:
setup:
condition: service_completed_successfully
@ -177,10 +177,10 @@ services:
- NETWORK_NAME=openvidu-community
- AGENTS_CONFIG_VOLUME=openvidu-agents-config
- LIVEKIT_URL=ws://openvidu:7880/
- LIVEKIT_API_KEY=devkey
- LIVEKIT_API_SECRET=secret
- LIVEKIT_API_KEY=${LIVEKIT_API_KEY:-devkey}
- LIVEKIT_API_SECRET=${LIVEKIT_API_SECRET:-secret}
- REDIS_ADDRESS=redis:6379
- REDIS_PASSWORD=redispassword
- REDIS_PASSWORD=${REDIS_PASSWORD:-redispassword}
depends_on:
setup:
condition: service_completed_successfully
@ -199,25 +199,25 @@ services:
- SERVER_PORT=6080
- MEET_LOG_LEVEL=info
- MEET_NAME_ID=openviduMeet-LOCAL
- MEET_INITIAL_API_KEY=meet-api-key
- MEET_INITIAL_ADMIN_USER=admin
- MEET_INITIAL_ADMIN_PASSWORD=admin
- MEET_INITIAL_API_KEY=${MEET_INITIAL_API_KEY:-meet-api-key}
- MEET_INITIAL_ADMIN_USER=${MEET_INITIAL_ADMIN_USER:-admin}
- MEET_INITIAL_ADMIN_PASSWORD=${MEET_INITIAL_ADMIN_PASSWORD:-admin}
- MEET_COOKIE_SECURE=false
- MEET_INITIAL_WEBHOOK_ENABLED=true
- MEET_INITIAL_WEBHOOK_URL=http://host.docker.internal:5080/webhook
- LIVEKIT_URL_PRIVATE=ws://openvidu:7880/
- LIVEKIT_API_KEY=devkey
- LIVEKIT_API_SECRET=secret
- LIVEKIT_API_KEY=${LIVEKIT_API_KEY:-devkey}
- LIVEKIT_API_SECRET=${LIVEKIT_API_SECRET:-secret}
- MEET_S3_BUCKET=openvidu-appdata
- MEET_S3_SUBBUCKET=openvidu-meet
- MEET_S3_SERVICE_ENDPOINT=http://minio:9000
- MEET_S3_ACCESS_KEY=minioadmin
- MEET_S3_SECRET_KEY=minioadmin
- MEET_S3_ACCESS_KEY=${MINIO_ACCESS_KEY:-minioadmin}
- MEET_S3_SECRET_KEY=${MINIO_SECRET_KEY:-minioadmin}
- MEET_AWS_REGION=us-east-1
- MEET_S3_WITH_PATH_STYLE_ACCESS=true
- MEET_REDIS_HOST=redis
- MEET_REDIS_PORT=6379
- MEET_REDIS_PASSWORD=redispassword
- MEET_REDIS_PASSWORD=${REDIS_PASSWORD:-redispassword}
- MEET_REDIS_DB=0
volumes:
- scripts:/scripts
@ -235,15 +235,15 @@ services:
- MODE=local-ready-check
- OPENVIDU_ENVIRONMENT=local-meet
- LAN_PRIVATE_IP=${LAN_PRIVATE_IP:-}
- DASHBOARD_ADMIN_USERNAME=admin
- DASHBOARD_ADMIN_PASSWORD=admin
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin
- LIVEKIT_API_KEY=devkey
- LIVEKIT_API_SECRET=secret
- MEET_INITIAL_ADMIN_USER=admin
- MEET_INITIAL_ADMIN_PASSWORD=admin
- MEET_INITIAL_API_KEY=meet-api-key
- DASHBOARD_ADMIN_USERNAME=${DASHBOARD_ADMIN_USERNAME:-admin}
- DASHBOARD_ADMIN_PASSWORD=${DASHBOARD_ADMIN_PASSWORD:-admin}
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY:-minioadmin}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY:-minioadmin}
- LIVEKIT_API_KEY=${LIVEKIT_API_KEY:-devkey}
- LIVEKIT_API_SECRET=${LIVEKIT_API_SECRET:-secret}
- MEET_INITIAL_ADMIN_USER=${MEET_INITIAL_ADMIN_USER:-admin}
- MEET_INITIAL_ADMIN_PASSWORD=${MEET_INITIAL_ADMIN_PASSWORD:-admin}
- MEET_INITIAL_API_KEY=${MEET_INITIAL_API_KEY:-meet-api-key}
volumes:
- scripts:/scripts
entrypoint: /bin/sh /scripts/entrypoint_ready_check.sh

View File

@ -148,11 +148,11 @@ services:
enabled: true
interval: 10s
expiration: 768h # 32 days
mongo_url: mongodb://mongoadmin:mongoadmin@mongo:27017/?replicaSet=rs0&readPreference=primaryPreferred
mongo_url: mongodb://${MONGO_ADMIN_USERNAME:-mongoadmin}:${MONGO_ADMIN_PASSWORD:-mongoadmin}@mongo:27017/?replicaSet=rs0&readPreference=primaryPreferred
rtc:
# WebRTC engine selection
# Values: pion, mediasoup
engine: pion
engine: ${RTC_ENGINE:-pion}
mediasoup:
# Global toggle to enable debugging logs from mediasoup.
# In most debugging cases, using just an asterisk ("*") here is enough,
@ -185,7 +185,7 @@ services:
redis:
address: redis:6379
username: ""
password: redispassword
password: ${REDIS_PASSWORD:-redispassword}
db: 0
use_tls: false
turn:
@ -194,9 +194,9 @@ services:
relay_range_start: 40000
relay_range_end: 50000
keys:
devkey: secret
${LIVEKIT_API_KEY:-devkey}: ${LIVEKIT_API_SECRET:-secret}
webhook:
api_key: devkey
api_key: ${LIVEKIT_API_KEY:-devkey}
urls:
- http://host.docker.internal:4443/livekit/webhook # For OpenVidu 2 compatibility
- http://host.docker.internal:6080/livekit/webhook
@ -219,11 +219,11 @@ services:
redis:
address: redis:6379
username: ""
password: redispassword
password: ${REDIS_PASSWORD:-redispassword}
db: 0
use_tls: false
api_key: devkey
api_secret: secret
api_key: ${LIVEKIT_API_KEY:-devkey}
api_secret: ${LIVEKIT_API_SECRET:-secret}
ws_url: ws://openvidu:7880
rtmp_port: 1935
whip_port: 8085
@ -239,11 +239,11 @@ services:
redis:
address: redis:6379
username: ""
password: redispassword
password: ${REDIS_PASSWORD:-redispassword}
db: 0
use_tls: false
api_key: devkey
api_secret: secret
api_key: ${LIVEKIT_API_KEY:-devkey}
api_secret: ${LIVEKIT_API_SECRET:-secret}
ws_url: ws://openvidu:7880
health_port: 9091
@ -254,8 +254,8 @@ services:
# Storage for recordings.
storage:
s3:
access_key: minioadmin
secret: minioadmin
access_key: ${MINIO_ACCESS_KEY:-minioadmin}
secret: ${MINIO_SECRET_KEY:-minioadmin}
# Default region for minio
region: us-east-1
endpoint: http://minio:9000

View File

@ -8,16 +8,16 @@ services:
- host.docker.internal:host-gateway
environment:
- LAN_PRIVATE_IP=${LAN_PRIVATE_IP:-}
- LIVEKIT_API_KEY=devkey
- LIVEKIT_API_SECRET=secret
- DASHBOARD_ADMIN_USERNAME=admin
- DASHBOARD_ADMIN_PASSWORD=admin
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin
- V2COMPAT_OPENVIDU_SECRET=secret
- MEET_INITIAL_ADMIN_USER=admin
- MEET_INITIAL_ADMIN_PASSWORD=admin
- MEET_INITIAL_API_KEY=meet-api-key
- LIVEKIT_API_KEY=${LIVEKIT_API_KEY:-devkey}
- LIVEKIT_API_SECRET=${LIVEKIT_API_SECRET:-secret}
- DASHBOARD_ADMIN_USERNAME=${DASHBOARD_ADMIN_USERNAME:-admin}
- DASHBOARD_ADMIN_PASSWORD=${DASHBOARD_ADMIN_PASSWORD:-admin}
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY:-minioadmin}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY:-minioadmin}
- V2COMPAT_OPENVIDU_SECRET=${LIVEKIT_API_SECRET:-secret}
- MEET_INITIAL_ADMIN_USER=${MEET_INITIAL_ADMIN_USER:-admin}
- MEET_INITIAL_ADMIN_PASSWORD=${MEET_INITIAL_ADMIN_PASSWORD:-admin}
- MEET_INITIAL_API_KEY=${MEET_INITIAL_API_KEY:-meet-api-key}
volumes:
- scripts:/scripts
entrypoint: /bin/sh /scripts/entrypoint_caddy.sh
@ -43,7 +43,7 @@ services:
command: >
redis-server
--bind 0.0.0.0
--requirepass redispassword
--requirepass ${REDIS_PASSWORD:-redispassword}
depends_on:
setup:
condition: service_completed_successfully
@ -56,8 +56,8 @@ services:
ports:
- 9000:9000
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
- MINIO_ROOT_USER=${MINIO_ACCESS_KEY:-minioadmin}
- MINIO_ROOT_PASSWORD=${MINIO_SECRET_KEY:-minioadmin}
- MINIO_DEFAULT_BUCKETS=openvidu-appdata
- MINIO_CONSOLE_SUBPATH=/minio-console
- MINIO_BROWSER_REDIRECT_URL=http://localhost:7880/minio-console
@ -78,8 +78,8 @@ services:
volumes:
- mongo-data:/bitnami/mongodb
environment:
- MONGODB_ROOT_USER=mongoadmin
- MONGODB_ROOT_PASSWORD=mongoadmin
- MONGODB_ROOT_USER=${MONGO_ADMIN_USERNAME:-mongoadmin}
- MONGODB_ROOT_PASSWORD=${MONGO_ADMIN_PASSWORD:-mongoadmin}
- MONGODB_ADVERTISED_HOSTNAME=mongo
- MONGODB_REPLICA_SET_MODE=primary
- MONGODB_REPLICA_SET_NAME=rs0
@ -96,9 +96,9 @@ services:
restart: unless-stopped
environment:
- SERVER_PORT=5000
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=admin
- DATABASE_URL=mongodb://mongoadmin:mongoadmin@mongo:27017/?replicaSet=rs0&readPreference=primaryPreferred
- ADMIN_USERNAME=${DASHBOARD_ADMIN_USERNAME:-admin}
- ADMIN_PASSWORD=${DASHBOARD_ADMIN_PASSWORD:-admin}
- DATABASE_URL=mongodb://${MONGO_ADMIN_USERNAME:-mongoadmin}:${MONGO_ADMIN_PASSWORD:-mongoadmin}@mongo:27017/?replicaSet=rs0&readPreference=primaryPreferred
depends_on:
setup:
condition: service_completed_successfully
@ -176,25 +176,25 @@ services:
- SERVER_PORT=6080
- MEET_LOG_LEVEL=info
- MEET_NAME_ID=openviduMeet-LOCAL
- MEET_INITIAL_API_KEY=meet-api-key
- MEET_INITIAL_ADMIN_USER=admin
- MEET_INITIAL_ADMIN_PASSWORD=admin
- MEET_INITIAL_API_KEY=${MEET_INITIAL_API_KEY:-meet-api-key}
- MEET_INITIAL_ADMIN_USER=${MEET_INITIAL_ADMIN_USER:-admin}
- MEET_INITIAL_ADMIN_PASSWORD=${MEET_INITIAL_ADMIN_PASSWORD:-admin}
- MEET_COOKIE_SECURE=false
- MEET_INITIAL_WEBHOOK_ENABLED=true
- MEET_INITIAL_WEBHOOK_URL=http://host.docker.internal:5080/webhook
- LIVEKIT_URL_PRIVATE=ws://openvidu:7880/
- LIVEKIT_API_KEY=devkey
- LIVEKIT_API_SECRET=secret
- LIVEKIT_API_KEY=${LIVEKIT_API_KEY:-devkey}
- LIVEKIT_API_SECRET=${LIVEKIT_API_SECRET:-secret}
- MEET_S3_BUCKET=openvidu-appdata
- MEET_S3_SUBBUCKET=openvidu-meet
- MEET_S3_SERVICE_ENDPOINT=http://minio:9000
- MEET_S3_ACCESS_KEY=minioadmin
- MEET_S3_SECRET_KEY=minioadmin
- MEET_S3_ACCESS_KEY=${MINIO_ACCESS_KEY:-minioadmin}
- MEET_S3_SECRET_KEY=${MINIO_SECRET_KEY:-minioadmin}
- MEET_AWS_REGION=us-east-1
- MEET_S3_WITH_PATH_STYLE_ACCESS=true
- MEET_REDIS_HOST=redis
- MEET_REDIS_PORT=6379
- MEET_REDIS_PASSWORD=redispassword
- MEET_REDIS_PASSWORD=${REDIS_PASSWORD:-redispassword}
- MEET_REDIS_DB=0
volumes:
- scripts:/scripts
@ -216,20 +216,20 @@ services:
environment:
- LAN_PRIVATE_IP=${LAN_PRIVATE_IP:-}
- V2COMPAT_OPENVIDU_SHIM_PORT=4443
- V2COMPAT_OPENVIDU_SECRET=secret
- V2COMPAT_OPENVIDU_SECRET=${LIVEKIT_API_SECRET:-secret}
- V2COMPAT_LIVEKIT_URL_PRIVATE=ws://openvidu:7880
- V2COMPAT_LIVEKIT_API_KEY=devkey
- V2COMPAT_LIVEKIT_API_SECRET=secret
- V2COMPAT_LIVEKIT_API_KEY=${LIVEKIT_API_KEY:-devkey}
- V2COMPAT_LIVEKIT_API_SECRET=${LIVEKIT_API_SECRET:-secret}
- V2COMPAT_OPENVIDU_RECORDING_PATH=/opt/openvidu/recordings
- V2COMPAT_OPENVIDU_PRO_RECORDING_STORAGE=local
- V2COMPAT_OPENVIDU_PRO_AWS_S3_BUCKET=openvidu-appdata
- V2COMPAT_OPENVIDU_PRO_AWS_S3_SERVICE_ENDPOINT=http://minio:9000
- V2COMPAT_OPENVIDU_PRO_AWS_REGION=us-east-1
- V2COMPAT_OPENVIDU_PRO_AWS_ACCESS_KEY=minioadmin
- V2COMPAT_OPENVIDU_PRO_AWS_SECRET_KEY=minioadmin
- V2COMPAT_OPENVIDU_PRO_AWS_ACCESS_KEY=${MINIO_ACCESS_KEY:-minioadmin}
- V2COMPAT_OPENVIDU_PRO_AWS_SECRET_KEY=${MINIO_SECRET_KEY:-minioadmin}
- V2COMPAT_REDIS_HOST=redis
- V2COMPAT_REDIS_PORT=6379
- V2COMPAT_REDIS_PASSWORD=redispassword
- V2COMPAT_REDIS_PASSWORD=${REDIS_PASSWORD:-redispassword}
- V2COMPAT_REDIS_DB=0
- V2COMPAT_OPENVIDU_WEBHOOK=false
- V2COMPAT_OPENVIDU_WEBHOOK_ENDPOINT=http://host.docker.internal:7777/webhook
@ -250,16 +250,16 @@ services:
- MODE=local-ready-check
- OPENVIDU_ENVIRONMENT=local-meet
- LAN_PRIVATE_IP=${LAN_PRIVATE_IP:-}
- DASHBOARD_ADMIN_USERNAME=admin
- DASHBOARD_ADMIN_PASSWORD=admin
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin
- LIVEKIT_API_KEY=devkey
- LIVEKIT_API_SECRET=secret
- V2COMPAT_OPENVIDU_SECRET=secret
- MEET_INITIAL_ADMIN_USER=admin
- MEET_INITIAL_ADMIN_PASSWORD=admin
- MEET_INITIAL_API_KEY=meet-api-key
- DASHBOARD_ADMIN_USERNAME=${DASHBOARD_ADMIN_USERNAME:-admin}
- DASHBOARD_ADMIN_PASSWORD=${DASHBOARD_ADMIN_PASSWORD:-admin}
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY:-minioadmin}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY:-minioadmin}
- LIVEKIT_API_KEY=${LIVEKIT_API_KEY:-devkey}
- LIVEKIT_API_SECRET=${LIVEKIT_API_SECRET:-secret}
- V2COMPAT_OPENVIDU_SECRET=${LIVEKIT_API_SECRET:-secret}
- MEET_INITIAL_ADMIN_USER=${MEET_INITIAL_ADMIN_USER:-admin}
- MEET_INITIAL_ADMIN_PASSWORD=${MEET_INITIAL_ADMIN_PASSWORD:-admin}
- MEET_INITIAL_API_KEY=${MEET_INITIAL_API_KEY:-meet-api-key}
volumes:
- scripts:/scripts
entrypoint: /bin/sh /scripts/entrypoint_ready_check.sh