diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 7d5230c27..69c2b1fe6 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -4,7 +4,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 diff --git a/local_launch.csv b/local_launch.csv new file mode 100644 index 000000000..06d0be3da --- /dev/null +++ b/local_launch.csv @@ -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 \ No newline at end of file