1.9 KiB
1.9 KiB
1 | Install Docker: https://docs.docker.com/engine/install/ubuntu/ |
---|---|
2 | sudo mkdir data |
3 | sudo mkdir data/{source,ssh,applications,databases,backups,services,proxy} |
4 | sudo mkdir data/ssh/{keys,mux} |
5 | sudo mkdir data/proxy/dynamic |
6 | sudo ssh-keygen -f ssh/keys/id.root@host.docker.internal -t ed25519 -N '' -C root@coolify |
7 | Add your public SSH key to ~/.ssh/authorized_keys: |
8 | |
9 | cat /data/lasthour/ssh/keys/id.root@host.docker.internal.pub >>~/.ssh/authorized_keys |
10 | chmod 600 ~/.ssh/authorized_keys |
11 | sudo cp lasthourcloud/docker-compose.yml data/source/ |
12 | sudo cp lasthourcloud/docker-compose.prod.yml data/source/ |
13 | sudo cp lasthourcloud/.env.production data/source/.env |
14 | sudo cp lasthourcloud/scripts/upgrade.sh data/source/ |
15 | sudo cp -r lasthourcloud/public/ data/public |
16 | sudo cp -r lasthourcloud/app/Notifications data/notifications |
17 | sudo cp -r lasthourcloud/app/Models data/notifications |
18 | sudo cp -r lasthourcloud/app/Livewire data/livewire |
19 | sudo cp lasthourcloud/.coolify-logo data/public/coolify |
20 | sudo cp lasthourcloud/tailwind.config.js data/tailwind |
21 | sudo chown -R 9999:root data |
22 | sudo chmod -R 700 data |
23 | sudo docker network create --attachable coolify |
24 | 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 |