offcie composer

This commit is contained in:
CHIEFSOFT\ameye
2025-10-24 17:16:58 -04:00
parent 83f7df629e
commit 7b9ec744bb
3 changed files with 91 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
DIGIFI_PORT=5173
# Social Links
FACEBOOK_URL=https://www.facebook.com
TWITTER_URL=https://twitter.com
INSTAGRAM_URL=https://www.instagram.com
# BACKEND END POINTS
REACT_APP_MAIN_API='https://backoffice-apidev.simbrellang.net'
# ENQUIRIES CONTACTS
VITE_CALL_ENDPOINT='09099000000'
VITE_EMAIL_ENDPOINT='fcmbloan@support.com'
#BANK NAME
VITE_BANK_NAME='First City Monument Bank'
VITE_BANK_NAME_SHORT='FCMB'
# Inactivity timeout/logout AT 10MINS
REACT_APP_TIMEOUT=600000
+20
View File
@@ -0,0 +1,20 @@
services:
digifi-office:
image: "registry.simbrellang.net/digifi/simbrella_office:latest"
env_file:
- .env.office
ports:
- 6039:5173
environment:
- PORT=${DIGIFI_PORT}
extra_hosts:
- first-advance-middleware-develop.fbn-devops-dev-asenv.appserviceenvironment.net:10.230.42.11
restart: always
tty: true
stdin_open: true
networks:
- digifi-office
networks:
digifi-office:
driver: bridge
+50
View File
@@ -0,0 +1,50 @@
#!/usr/bin/env bash
log() {
local message="$1"
echo -e "\033[32mLog: $message\033[0m"
}
handle_error() {
local error_message="$1"
echo -e "\033[31mError: $error_message\033[0m"
exit 1
}
retry() {
local max_attempts=2
local attempt=1
local delay=1
while true; do
"$@" && break || {
if [ $attempt -lt $max_attempts ]; then
log "Command failed (attempt $attempt/$max_attempts). Retrying in $delay seconds..."
sleep $delay
delay=$((delay * 2))
((attempt++))
else
handle_error "Command failed after $attempt attempts: $*"
fi
}
done
}
################################################################################
# MAIN
################################################################################
if [ "$1" == "product" ]; then
#start_services
docker login -u="admin" -p="may12002" registry.simbrellang.net
retry docker pull registry.simbrellang.net/digifi/simbrella_office:latest
# retry docker pull registry.simbrellang.net/digifi/simbrellacore0001:latest
elif [ "$1" == "clean" ]; then
retry docker stop digi_co
else
handle_error "Invalid argument. Use 'clean' or 'product'."
fi