main: change compose bind source type

This commit is contained in:
Gary 2024-02-21 17:00:59 -08:00
parent e86a523070
commit c385dbe439
2 changed files with 42 additions and 1 deletions

View File

@ -3,7 +3,7 @@ services:
image: "ghcr.io/coollabsio/coolify:${LATEST_IMAGE:-latest}"
volumes:
- type: bind
source: /data/coolify/source/.env
source: /data/source/.env
target: /var/www/html/.env
read_only: true
- /data/coolify/ssh:/var/www/html/storage/app/ssh

41
local_launch.csv Normal file
View File

@ -0,0 +1,41 @@
Install Docker: https://docs.docker.com/engine/install/ubuntu/
sudo mkdir data
sudo mkdir data/{source,ssh,applications,databases,backups,services,proxy}
sudo mkdir data/ssh/{keys,mux}
sudo mkdir data/proxy/dynamic
sudo ssh-keygen -f ssh/keys/id.root@host.docker.internal -t ed25519 -N '' -C root@coolify
Add your public SSH key to ~/.ssh/authorized_keys:
cat /data/lasthour/ssh/keys/id.root@host.docker.internal.pub >>~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
sudo cp lasthourcloud/docker-compose.yml data/source/
sudo cp lasthourcloud/docker-compose.prod.yml data/source/
sudo cp lasthourcloud/.env.production data/source/.env
sudo cp lasthourcloud/scripts/upgrade.sh data/source/
sudo cp -r lasthourcloud/public/ data/public
sudo cp -r lasthourcloud/app/Notifications data/notifications
sudo cp -r lasthourcloud/app/Models data/notifications
sudo cp -r lasthourcloud/app/Livewire data/livewire
sudo cp lasthourcloud/.coolify-logo data/
sudo cp lasthourcloud/tailwind.config.js data/
sudo sed -i "s|APP_ID=.*|APP_ID=$(openssl rand -hex 16)|g" data/source/.env
sudo sed -i "s|APP_KEY=.*|APP_KEY=base64:$(openssl rand -base64 32)|g" data/source/.env
sudo sed -i "s|DB_PASSWORD=.*|DB_PASSWORD=$(openssl rand -base64 32)|g" data/source/.env
sudo sed -i "s|REDIS_PASSWORD=.*|REDIS_PASSWORD=$(openssl rand -base64 32)|g" data/source/.env
sudo sed -i "s|PUSHER_APP_ID=.*|PUSHER_APP_ID=$(openssl rand -hex 32)|g" data/source/.env
sudo sed -i "s|PUSHER_APP_KEY=.*|PUSHER_APP_KEY=$(openssl rand -hex 32)|g" data/source/.env
sudo sed -i "s|PUSHER_APP_SECRET=.*|PUSHER_APP_SECRET=$(openssl rand -hex 32)|g" data/source/.env
sudo chown -R 9999:root data
sudo chmod -R 700 data
sudo docker network create --attachable coolify
sudo docker compose --env-file data/source/.env -f data/source/docker-compose.yml -f data/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate
Can't render this file because it contains an unexpected character in line 28 and column 13.