Skip to content

Commit 4875637

Browse files
committed
update and improve docker compose to start db
1 parent 7389331 commit 4875637

10 files changed

Lines changed: 59 additions & 20 deletions

File tree

ai-first-customer360.png

942 KB
Loading

devops-script/docker-arangodb/docker-compose.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
1-
version: '3.7'
1+
version: "3.7"
22

33
services:
4-
arangodb_db_container:
5-
image: arangodb:latest
4+
5+
# arangodb for core database
6+
arangodb:
7+
image: arangodb:3.11.14
68
restart: unless-stopped
79
container_name: arangodb
810
environment:
9-
ARANGO_ROOT_PASSWORD: FormulaLeo#2020
11+
ARANGO_ROOT_PASSWORD: ${ARANGO_ROOT_PASSWORD}
12+
ports:
13+
- "8601:8529"
14+
volumes:
15+
- ./arangodb_data:/var/lib/arangodb3
16+
- ./arangodb_apps:/var/lib/arangodb3-apps
17+
18+
# redis for cache
19+
redis:
20+
image: redis:7.4
21+
restart: unless-stopped
22+
container_name: redis
1023
ports:
11-
- 8601:8529
24+
- "6379:6379"
1225
volumes:
13-
- arangodb_data_container:/var/lib/arangodb3
14-
- arangodb_apps_data_container:/var/lib/arangodb3-apps
26+
- ./redis_data:/data
27+
command: ["redis-server", "--appendonly", "yes"] # ensures persistence
1528

16-
volumes:
17-
arangodb_data_container:
18-
arangodb_apps_data_container:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# .env
2+
ARANGO_ROOT_PASSWORD=12345678
Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
2+
set -e
23

3-
docker-compose -f docker-compose.yml up -d
4+
# Path to your env file
5+
ENV_FILE="sample.env"
6+
7+
# Check if env file exists
8+
if [[ ! -f "$ENV_FILE" ]]; then
9+
echo "❌ Missing $ENV_FILE. Please create it first."
10+
exit 1
11+
fi
12+
13+
# Export variables from env file
14+
echo "🔑 Loading environment variables from $ENV_FILE..."
15+
export $(grep -v '^#' $ENV_FILE | xargs)
16+
17+
# Detect local IP address (IPv4, non-loopback)
18+
HOST_IP=$(hostname -I | awk '{print $1}')
19+
20+
echo "🌍 Host IP detected: $HOST_IP"
21+
echo " - ArangoDB: http://$HOST_IP:8601"
22+
echo " - Redis: $HOST_IP:6379"
23+
24+
# Start Docker Compose
25+
echo "🚀 Starting services with docker-compose..."
26+
docker-compose -f docker-compose.yml up -d
27+
28+
echo "✅ All services are up!"
1.58 KB
Binary file not shown.

leo-main-starter-v_0.9.0.jar

1.59 KB
Binary file not shown.

leo-observer-starter-v_0.9.0.jar

1.58 KB
Binary file not shown.

leo-scheduler-starter-v_0.9.0.jar

1.59 KB
Binary file not shown.

resources/app-templates/leocdp-admin/main-view.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
</button>
1010

1111
<a class="navbar-brand" href="/">
12-
<img id="logo-img" src="" alt="MainLogo" style="display: none;" title="ReSynap" data-container="body" data-toggle="popover" data-placement="bottom"
13-
data-content="AI-Driven Insights Platform" />
12+
<img id="logo-img" alt="CDP Logo" style="display: none;" title="CDP Admin" data-container="body" data-toggle="popover" data-placement="bottom" data-content="CDP Admin" />
1413
</a>
1514

1615
<div style="width:100%;">
@@ -92,7 +91,7 @@
9291
title="Customer Persona Management" data-container="body" data-toggle="popover" data-placement="right" data-content="Manage all customer personas" >
9392
<i class="fa fa-fw fa-user-circle-o"></i> Customer Persona </a>
9493
</li>
95-
<li style="display: none;" data-system-user-roles="5">
94+
<li >
9695
<a id="Data_Journey_Map" href="#calljs-leoCdpRouter('Data_Journey_Map','id_default_journey')"
9796
title="Data Journey Map Management" data-container="body" data-toggle="popover" data-placement="right" data-content="Manage all customer data journey maps and touchpoint data hubs" >
9897
<i class="fa fa-fw fa-exchange"></i> Data Journey Map </a>
@@ -319,7 +318,10 @@
319318
} else {
320319

321320
$(window).resize(pageWrapperResize);
322-
$('#logo-img').attr('src',window.pageHeaderLogo).show();
321+
322+
// TODO
323+
var logoCdpBackgroundColor = '';
324+
$('#logo-img').attr('src',window.pageHeaderLogo).css('background-color',logoCdpBackgroundColor).show();
323325

324326
pageWrapperResize();
325327
loadUserInfoWidget();

resources/app-templates/leocdp-admin/modules/customer/customer-profile-info.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ <h4 > <mark id="profile_full_name" style="color:blue!important; font-weight: bo
134134
<a href="javascript:" data-target-tab="panel_customer_experience" title="Customer Feedback Data" > <i class="fa fa-commenting-o" aria-hidden="true"></i> Feedback Data </a>
135135
</li>
136136

137-
<li data-industry="RETAIL" style="display: none;" >
138-
<a href="javascript: loadRecommendedContentsOfProfile(viewProfileId, true)" data-target-tab="panel_content_suggestions" title="Recommended contents for direct marketing" > <i class="fa fa-list-ol" aria-hidden="true"></i> Recommended Contents </a>
137+
<li >
138+
<a href="javascript: loadRecommendedContentsOfProfile(viewProfileId, true)" data-target-tab="panel_content_suggestions" title="Recommended contents for this profile" > <i class="fa fa-list-ol" aria-hidden="true"></i> Recommended Contents </a>
139139
</li>
140140

141-
<li data-industry="RETAIL" style="display: none;" >
142-
<a href="javascript: loadRecommendedProductsOfProfile(viewProfileId, true)" data-target-tab="panel_recommended_products" title="Recommended products for direct marketing" > <i class="fa fa-list-ol" aria-hidden="true"></i> Recommended Products </a>
141+
<li >
142+
<a href="javascript: loadRecommendedProductsOfProfile(viewProfileId, true)" data-target-tab="panel_recommended_products" title="Recommended products for this profile" > <i class="fa fa-list-ol" aria-hidden="true"></i> Recommended Products </a>
143143
</li>
144144

145145
<li data-industry="FINANCE" style="display: none;" onclick="loadFinance360Profile()" >

0 commit comments

Comments
 (0)