Testing again. Minimal changes to start.

This commit is contained in:
raisercostin
2024-12-28 01:33:24 +02:00
parent 886cbbf111
commit b59cd2bf69
3 changed files with 12 additions and 9 deletions

View File

@@ -11,15 +11,15 @@ sleep 1s
docker secret rm captain-salt
docker build -t captain-debug -f dockerfile-captain.debug .
rm -rf /captain && mkdir /captain
mkdir -p /captain/data/shared-logs
chmod -R 777 /captain
# Add to run on differnt ports
# -e "CAPTAIN_HOST_HTTP_PORT=10080" \
# -e "CAPTAIN_HOST_HTTPS_PORT=10443" \
# -e "CAPTAIN_HOST_ADMIN_PORT=13000" \
docker run \
-e "CAPTAIN_IS_DEBUG=1" \
-e "MAIN_NODE_IP_ADDRESS=127.0.0.1" \
-e "CAPTAIN_HOST_HTTP_PORT=10083" \
-e "CAPTAIN_HOST_HTTPS_PORT=10443" \
-e "CAPTAIN_HOST_ADMIN_PORT=13000" \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /captain:/captain \
-v $(pwd):/usr/src/app captain-debug

View File

@@ -249,8 +249,11 @@ class DataStore {
const goAccessInfo = (self.data.get(GOACCESS_INFO) ||
{}) as GoAccessInfo
goAccessInfo.isEnabled = goAccessInfo.isEnabled || false
goAccessInfo.data.rotationFrequencyCron =
goAccessInfo.data.rotationFrequencyCron ?? '0 0 1 * *' // monthly
if(!goAccessInfo.data) {
goAccessInfo.data = {
rotationFrequencyCron:'0 0 1 * *' // monthly
}
}
return Promise.resolve(goAccessInfo)
}

View File

@@ -247,7 +247,7 @@ if (data.isDebug) {
data.debugSourceDirectory = devDirectoryOnLocalMachine
data.configs.publishedNameOnDockerHub = 'captain-debug'
data.configs.nginxPortNumber80 = 80
// data.configs.nginxPortNumber80 = 80
}
export default data