Compare commits

..

No commits in common. "40c592b0caf70a1b95b320742db3cf6c90b860cd" and "2434a1ec58e55e4b44fa11af3f950ff4a92a80bb" have entirely different histories.

2 changed files with 21 additions and 48 deletions

View File

@ -23,7 +23,6 @@ ENV_FILE="$SCRIPT_DIR/.env"
SERVICES_YAML="$SCRIPT_DIR/configs/homepage/services.yaml" SERVICES_YAML="$SCRIPT_DIR/configs/homepage/services.yaml"
WIDGETS_YAML="$SCRIPT_DIR/configs/homepage/widgets.yaml" WIDGETS_YAML="$SCRIPT_DIR/configs/homepage/widgets.yaml"
MKDOCS_MAIN_HTML="$SCRIPT_DIR/mkdocs/docs/overrides/main.html" MKDOCS_MAIN_HTML="$SCRIPT_DIR/mkdocs/docs/overrides/main.html"
MKDOCS_YML="$SCRIPT_DIR/mkdocs/mkdocs.yml"
echo "Looking for .env file at: $ENV_FILE" echo "Looking for .env file at: $ENV_FILE"
@ -406,35 +405,6 @@ update_widgets_yaml() {
return 0 return 0
} }
# Function to update the site_url in mkdocs.yml
update_mkdocs_yml() {
local new_domain=$1
if [ ! -f "$MKDOCS_YML" ]; then
echo "Warning: mkdocs.yml not found at $MKDOCS_YML"
return 1
fi
echo "Updating site_url in mkdocs.yml..."
# Create a backup of the mkdocs.yml file
local timestamp=$(date +"%Y%m%d_%H%M%S")
local backup_file="${MKDOCS_YML}.backup_${timestamp}"
cp "$MKDOCS_YML" "$backup_file"
echo "Created backup of mkdocs.yml at $backup_file"
# Update the site_url value
sed -i "s|^site_url:.*|site_url: https://$new_domain|" "$MKDOCS_YML"
if grep -q "site_url: https://$new_domain" "$MKDOCS_YML"; then
echo "Updated site_url in mkdocs.yml to: https://$new_domain"
return 0
else
echo "Warning: Failed to update site_url in mkdocs.yml"
return 1
fi
}
# Make sure the initialize_env_file function is available # Make sure the initialize_env_file function is available
initialize_env_file initialize_env_file
@ -470,7 +440,7 @@ update_env_var "EXCALIDRAW_PUBLIC_SOCKET_URL" "https://excalidraw.$domain_name"
# Update OpenWebUI settings # Update OpenWebUI settings
echo -e "\nConfiguring OpenWebUI..." echo -e "\nConfiguring OpenWebUI..."
update_env_var "OPEN_WEBUI_PORT" "3005" update_env_var "OPEN_WEBUI_PORT" "3005"
update_env_var "OPEN_WEBUI_URL" "https://open-web-ui.$domain_name" update_env_var "OPEN_WEBUI_URL" "https://open-webui.$domain_name"
# Update service URLs in the services.yaml file # Update service URLs in the services.yaml file
echo -e "\nUpdating service URLs in services.yaml file..." echo -e "\nUpdating service URLs in services.yaml file..."
@ -484,10 +454,6 @@ update_widgets_yaml "$domain_name"
echo -e "\nUpdating login button URL in MkDocs main.html..." echo -e "\nUpdating login button URL in MkDocs main.html..."
update_mkdocs_main_html "$domain_name" update_mkdocs_main_html "$domain_name"
# Update the site_url in mkdocs.yml
echo -e "\nUpdating site_url in mkdocs.yml..."
update_mkdocs_yml "$domain_name"
echo -e "Domain settings have been updated successfully!\n" echo -e "Domain settings have been updated successfully!\n"
# Listmonk Admin Credentials configuration # Listmonk Admin Credentials configuration

View File

@ -5,7 +5,7 @@ services:
image: ghcr.io/gethomepage/homepage:latest image: ghcr.io/gethomepage/homepage:latest
container_name: homepage-changemaker container_name: homepage-changemaker
ports: ports:
- "${HOMEPAGE_PORT:-3010}:3000" - 3010:3000
volumes: volumes:
- ./configs/homepage:/app/config - ./configs/homepage:/app/config
- ./assets/icons:/app/public/icons - ./assets/icons:/app/public/icons
@ -24,7 +24,7 @@ services:
image: ghcr.io/gethomepage/homepage:latest image: ghcr.io/gethomepage/homepage:latest
container_name: homepage-changemaker-local container_name: homepage-changemaker-local
ports: ports:
- "${HOMEPAGE_LOCAL_PORT:-3011}:3000" - 3011:3000
volumes: volumes:
- ./configs/homepage-local:/app/config - ./configs/homepage-local:/app/config
- ./assets/icons:/app/public/icons - ./assets/icons:/app/public/icons
@ -136,7 +136,7 @@ services:
container_name: listmonk_app container_name: listmonk_app
restart: unless-stopped restart: unless-stopped
ports: ports:
- "${LISTMONK_PORT:-9000}:9000" - "9000:9000"
networks: networks:
- changemaker - changemaker
hostname: ${LISTMONK_HOSTNAME} hostname: ${LISTMONK_HOSTNAME}
@ -166,7 +166,7 @@ services:
container_name: listmonk-db container_name: listmonk-db
restart: unless-stopped restart: unless-stopped
ports: ports:
- "${LISTMONK_DB_PORT:-5432}:5432" - "0.0.0.0:5432:5432"
networks: networks:
- changemaker - changemaker
environment: environment:
@ -190,7 +190,7 @@ services:
depends_on: depends_on:
- monica-db - monica-db
ports: ports:
- "${MONICA_PORT:-8085}:80" - 8085:80
environment: environment:
- APP_KEY=${MONICA_APP_KEY} - APP_KEY=${MONICA_APP_KEY}
- DB_HOST=monica-db - DB_HOST=monica-db
@ -245,7 +245,7 @@ services:
volumes: volumes:
- ./mkdocs/site:/config/www # Mounts your static site to Nginx's web root - ./mkdocs/site:/config/www # Mounts your static site to Nginx's web root
ports: ports:
- "${MKDOCS_SITE_SERVER_PORT:-4001}:80" # Exposes Nginx's port 80 to host port 4001 - "4001:80" # Exposes Nginx's port 80 to host port 4001
restart: unless-stopped restart: unless-stopped
networks: networks:
- changemaker - changemaker
@ -291,10 +291,17 @@ services:
ollama: ollama:
image: ollama/ollama image: ollama/ollama
container_name: ollama-changemaker container_name: ollama-changemaker
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes: volumes:
- ollama:/root/.ollama - ollama:/root/.ollama
ports: ports:
- "${OLLAMA_PORT:-11435}:11434" - "11435:11434"
restart: unless-stopped restart: unless-stopped
networks: networks:
- changemaker - changemaker
@ -360,8 +367,8 @@ services:
networks: networks:
- changemaker - changemaker
ports: ports:
- "${PORTAINER_PORT:-8005}:8000" - "8005:8000"
- "${PORTAINER_HTTPS_PORT:-9444}:9443" - "9444:9443"
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data - portainer_data:/data
@ -371,7 +378,7 @@ services:
image: ghcr.io/lyqht/mini-qr:latest image: ghcr.io/lyqht/mini-qr:latest
container_name: mini-qr container_name: mini-qr
ports: ports:
- "${MINI_QR_PORT:-8081}:8080" - 8081:8080
restart: unless-stopped restart: unless-stopped
networks: networks:
- changemaker - changemaker
@ -391,8 +398,8 @@ services:
volumes: volumes:
- ./configs/ferdium:/config - ./configs/ferdium:/config
ports: ports:
- "${FERDIUM_PORT:-3009}:3009" - 3009:3009
- "${FERDIUM_HTTPS_PORT:-3006}:3006" - 3006:3006
shm_size: "1gb" shm_size: "1gb"
restart: unless-stopped restart: unless-stopped
networks: networks:
@ -424,7 +431,7 @@ services:
NC_DB: "pg://root_db:5432?u=postgres&p=password&d=root_db" NC_DB: "pg://root_db:5432?u=postgres&p=password&d=root_db"
image: "nocodb/nocodb:latest" image: "nocodb/nocodb:latest"
ports: ports:
- "${NOCODB_PORT:-8090}:8080" - "8090:8080"
restart: always restart: always
volumes: volumes:
- "nc_data:/usr/app/data" - "nc_data:/usr/app/data"