main: WIP compose files and local_install.sh

This commit is contained in:
Gary 2024-02-27 15:15:06 -08:00
parent 9751a684a0
commit 9ee7be35d5
3 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,9 @@ services:
source: /data/coolify/source/.env source: /data/coolify/source/.env
target: /var/www/html/.env target: /var/www/html/.env
read_only: true read_only: true
- type: bind
source: /data/coolify/public
target: /var/www/html/public
- /data/coolify/ssh:/var/www/html/storage/app/ssh - /data/coolify/ssh:/var/www/html/storage/app/ssh
- /data/coolify/applications:/var/www/html/storage/app/applications - /data/coolify/applications:/var/www/html/storage/app/applications
- /data/coolify/databases:/var/www/html/storage/app/databases - /data/coolify/databases:/var/www/html/storage/app/databases

View File

@ -40,3 +40,4 @@ # Alpine Linux
git clone https://githaven.org/Shiloh/lasthourcloud.git git clone https://githaven.org/Shiloh/lasthourcloud.git
sudo bash /home/lasthour/lasthourcloud/scripts/local_install.sh sudo bash /home/lasthour/lasthourcloud/scripts/local_install.sh
sudo bash /home/lasthour/lasthourcloud/scripts/upgrade.sh sudo bash /home/lasthour/lasthourcloud/scripts/upgrade.sh
Running php artisan optimize:clear clears the cached files, preventing potential issues.

View File

@ -44,5 +44,5 @@ if [ -f /data/coolify/source/docker-compose.custom.yml ]; then
echo "docker-compose.custom.yml detected." echo "docker-compose.custom.yml detected."
docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml -f /data/coolify/source/docker-compose.custom.yml up -d --pull always --remove-orphans --force-recreate" docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml -f /data/coolify/source/docker-compose.custom.yml up -d --pull always --remove-orphans --force-recreate"
else else
docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate" docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock -v /data/coolify/public --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate"
fi fi