Skip to content

Commit 37d2cd5

Browse files
Aaron3SBaiJiangJie
authored andcommitted
feat: add component facelive
1 parent ca68c3c commit 37d2cd5

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

compose/facelive.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
services:
2+
facelive:
3+
image: ${REGISTRY:-registry.fit2cloud.com}/jumpserver/facelive:${VERSION}
4+
container_name: jms_facelive
5+
hostname: jms_facelive
6+
restart: always
7+
env_file:
8+
- ${CONFIG_FILE}
9+
volumes:
10+
- ${VOLUME_DIR}/facelive/data:/opt/facelive/data
11+
healthcheck:
12+
test: "curl -fsL http://localhost:9999/facelive/health/ > /dev/null"
13+
interval: 10s
14+
timeout: 5s
15+
retries: 3
16+
start_period: 10s
17+
networks:
18+
- net

scripts/config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ function set_port() {
5656
razor_enable=$(get_config RAZOR_ENABLE)
5757
web_enable=$(get_config WEB_ENABLE)
5858
nec_enable=$(get_config NEC_ENABLE)
59+
facelive_enable=$(get_config FACELIVE_ENABLE)
5960

6061
if [[ "${web_enable}" != "0" ]]; then
6162
http_port=$(get_config HTTP_PORT)

scripts/utils.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ function get_images() {
208208
echo "registry.fit2cloud.com/jumpserver/xrdp:${VERSION}"
209209
echo "registry.fit2cloud.com/jumpserver/panda:${VERSION}"
210210
echo "registry.fit2cloud.com/jumpserver/nec:${VERSION}"
211+
echo "registry.fit2cloud.com/jumpserver/facelive:${VERSION}"
211212
else
212213
echo "jumpserver/core:${VERSION}"
213214
echo "jumpserver/koko:${VERSION}"
@@ -343,8 +344,8 @@ function get_docker_compose_services() {
343344
[[ "${use_loki}" == "1" ]] && services+=" loki"
344345

345346
if [[ "${use_xpack}" == "1" ]]; then
346-
services+=" magnus razor xrdp video panda nec"
347-
for service in magnus razor xrdp video panda nec; do
347+
services+=" magnus razor xrdp video panda nec facelive"
348+
for service in magnus razor xrdp video panda nec facelive; do
348349
enabled=$(get_config "${service^^}_ENABLED")
349350
[[ "${enabled}" == "0" ]] && services="${services//${service}/}"
350351
done
@@ -396,7 +397,7 @@ function get_docker_compose_cmd_line() {
396397
fi
397398

398399
if [[ "${use_xpack}" == '1' ]]; then
399-
for service in magnus razor xrdp video panda nec; do
400+
for service in magnus razor xrdp video panda nec facelive; do
400401
if [[ "${services}" =~ ${service} ]]; then
401402
cmd+=" -f compose/${service}.yml"
402403
fi

0 commit comments

Comments
 (0)