main: change compose bind source type
This commit is contained in:
parent
95e3f7e6fb
commit
fc6b27e70a
@ -4,7 +4,7 @@ services:
|
|||||||
image: "ghcr.io/coollabsio/coolify:${LATEST_IMAGE:-latest}"
|
image: "ghcr.io/coollabsio/coolify:${LATEST_IMAGE:-latest}"
|
||||||
volumes:
|
volumes:
|
||||||
- type: bind
|
- type: bind
|
||||||
source: /data/coolify/source/.env
|
source: /data/source/.env
|
||||||
target: /var/www/html/.env
|
target: /var/www/html/.env
|
||||||
read_only: true
|
read_only: true
|
||||||
- /data/coolify/ssh:/var/www/html/storage/app/ssh
|
- /data/coolify/ssh:/var/www/html/storage/app/ssh
|
||||||
|
41
local_launch.csv
Normal file
41
local_launch.csv
Normal 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.
|
Loading…
Reference in New Issue
Block a user