mirror of
https://github.com/bigbluebutton/docker.git
synced 2024-12-02 04:53:09 +01:00
all data under ./data instead in docker volumes
- easier backups - people can access recordings with existing scripts
This commit is contained in:
parent
72bd71c8bf
commit
a3f346d8a0
@ -74,8 +74,8 @@ services:
|
|||||||
ENABLE_LEARNING_DASHBOARD: ${ENABLE_LEARNING_DASHBOARD:-true}
|
ENABLE_LEARNING_DASHBOARD: ${ENABLE_LEARNING_DASHBOARD:-true}
|
||||||
NUMBER_OF_BACKEND_NODEJS_PROCESSES: {{ .Env.NUMBER_OF_BACKEND_NODEJS_PROCESSES }}
|
NUMBER_OF_BACKEND_NODEJS_PROCESSES: {{ .Env.NUMBER_OF_BACKEND_NODEJS_PROCESSES }}
|
||||||
volumes:
|
volumes:
|
||||||
- bigbluebutton:/var/bigbluebutton
|
- ./data/bigbluebutton:/var/bigbluebutton
|
||||||
- vol-freeswitch:/var/freeswitch/meetings
|
- ./data/freeswitch-meetings:/var/freeswitch/meetings
|
||||||
networks:
|
networks:
|
||||||
bbb-net:
|
bbb-net:
|
||||||
ipv4_address: 10.7.7.2
|
ipv4_address: 10.7.7.2
|
||||||
@ -167,7 +167,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./conf/sip_profiles:/etc/freeswitch/sip_profiles/external
|
- ./conf/sip_profiles:/etc/freeswitch/sip_profiles/external
|
||||||
- ./conf/dialplan_public:/etc/freeswitch/dialplan/public_docker
|
- ./conf/dialplan_public:/etc/freeswitch/dialplan/public_docker
|
||||||
- vol-freeswitch:/var/freeswitch/meetings
|
- ./data/freeswitch-meetings:/var/freeswitch/meetings
|
||||||
network_mode: host
|
network_mode: host
|
||||||
logging:
|
logging:
|
||||||
# reduce logs to a minimum, so `docker compose logs -f` still works
|
# reduce logs to a minimum, so `docker compose logs -f` still works
|
||||||
@ -308,7 +308,7 @@ services:
|
|||||||
{{end}}
|
{{end}}
|
||||||
MS_RTP_LISTEN_IP: '{"ip":"0.0.0.0", "announcedIp":"${EXTERNAL_IPv4}"}'
|
MS_RTP_LISTEN_IP: '{"ip":"0.0.0.0", "announcedIp":"${EXTERNAL_IPv4}"}'
|
||||||
volumes:
|
volumes:
|
||||||
- vol-mediasoup:/var/mediasoup
|
- ./data/mediasoup:/var/mediasoup
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /var/log/bbb-webrtc-sfu
|
- /var/log/bbb-webrtc-sfu
|
||||||
network_mode: host
|
network_mode: host
|
||||||
@ -446,8 +446,8 @@ services:
|
|||||||
- mongodb
|
- mongodb
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- bigbluebutton:/var/bigbluebutton
|
- ./data/bigbluebutton:/var/bigbluebutton
|
||||||
- vol-mediasoup:/var/mediasoup
|
- ./data/mediasoup:/var/mediasoup
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /var/log/bigbluebutton
|
- /var/log/bigbluebutton
|
||||||
environment:
|
environment:
|
||||||
@ -479,10 +479,9 @@ services:
|
|||||||
DOMAIN: ${DOMAIN}
|
DOMAIN: ${DOMAIN}
|
||||||
SHARED_SECRET: ${SHARED_SECRET}
|
SHARED_SECRET: ${SHARED_SECRET}
|
||||||
volumes:
|
volumes:
|
||||||
- bigbluebutton:/var/bigbluebutton
|
- ./data/bigbluebutton:/var/bigbluebutton
|
||||||
- vol-freeswitch:/var/freeswitch/meetings
|
- ./data/freeswitch-meetings:/var/freeswitch/meetings
|
||||||
- vol-mediasoup:/var/mediasoup
|
- ./data/mediasoup:/var/mediasoup
|
||||||
- vol-kurento:/var/kurento
|
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /var/log/bigbluebutton
|
- /var/log/bigbluebutton
|
||||||
- /tmp
|
- /tmp
|
||||||
@ -583,10 +582,11 @@ services:
|
|||||||
SECRET_KEY_BASE: ${RAILS_SECRET}
|
SECRET_KEY_BASE: ${RAILS_SECRET}
|
||||||
RELATIVE_URL_ROOT: /
|
RELATIVE_URL_ROOT: /
|
||||||
volumes:
|
volumes:
|
||||||
- ./greenlight-data:/usr/src/app/storage
|
- ./data/greenlight:/usr/src/app/storage
|
||||||
networks:
|
networks:
|
||||||
bbb-net:
|
bbb-net:
|
||||||
ipv4_address: 10.7.7.21
|
ipv4_address: 10.7.7.21
|
||||||
|
{{end}}
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
@ -601,6 +601,7 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./data/postgres:/var/lib/postgresql/data
|
||||||
- ./mod/postgres/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh
|
- ./mod/postgres/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh
|
||||||
networks:
|
networks:
|
||||||
bbb-net:
|
bbb-net:
|
||||||
@ -620,7 +621,7 @@ services:
|
|||||||
ipv4_address: 10.7.7.33
|
ipv4_address: 10.7.7.33
|
||||||
{{ if isTrue .Env.ENABLE_PROMETHEUS_EXPORTER_OPTIMIZATION }}
|
{{ if isTrue .Env.ENABLE_PROMETHEUS_EXPORTER_OPTIMIZATION }}
|
||||||
volumes:
|
volumes:
|
||||||
- bigbluebutton:/var/bigbluebutton:ro
|
- ./data/bigbluebutton:/var/bigbluebutton:ro
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
# the exporter requires /etc/bigbluebutton/bigbluebutton-release
|
# the exporter requires /etc/bigbluebutton/bigbluebutton-release
|
||||||
@ -631,10 +632,6 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
bigbluebutton:
|
|
||||||
vol-freeswitch:
|
|
||||||
vol-kurento:
|
|
||||||
vol-mediasoup:
|
|
||||||
html5-static:
|
html5-static:
|
||||||
{{ if isTrue .Env.ENABLE_HTTPS_PROXY }}
|
{{ if isTrue .Env.ENABLE_HTTPS_PROXY }}
|
||||||
ssl_data:
|
ssl_data:
|
||||||
|
@ -19,6 +19,30 @@ else
|
|||||||
echo "# recreate docker-compose.yml"
|
echo "# recreate docker-compose.yml"
|
||||||
./scripts/generate-compose
|
./scripts/generate-compose
|
||||||
|
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "# checking for old volumes & migrate them"
|
||||||
|
COMPOSE_PREFIX=$(docker compose config | grep '^name:' | awk '{print $2}')
|
||||||
|
|
||||||
|
function migrate {
|
||||||
|
VOLUME=${COMPOSE_PREFIX}_${1}
|
||||||
|
EXISTING=$(docker volume ls | grep $VOLUME | tail -n1 | awk '{print $2}')
|
||||||
|
if [ -n "$EXISTING" ]; then
|
||||||
|
# ensure volume is not used
|
||||||
|
docker compose down --remove-orphans
|
||||||
|
|
||||||
|
echo "Migrating $VOLUME to $2"
|
||||||
|
docker run --rm -v $VOLUME:/src -v $2:/dest --entrypoint /bin/sh eeacms/rsync -c 'rsync -av /src/ /dest'
|
||||||
|
docker volume rm $EXISTING
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
migrate bigbluebutton ./data/bigbluebutton
|
||||||
|
migrate vol-freeswitch ./data/freeswitch-meetings
|
||||||
|
migrate vol-mediasoup ./data/mediasoup
|
||||||
|
|
||||||
|
# TODO: migrate postgres database
|
||||||
|
# TODO: migrate greenlight-data
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "# pull newest images"
|
echo "# pull newest images"
|
||||||
docker compose pull --ignore-pull-failures
|
docker compose pull --ignore-pull-failures
|
||||||
|
Loading…
Reference in New Issue
Block a user