41 lines
1.5 KiB
Markdown
41 lines
1.5 KiB
Markdown
### OVHCloud VPS deploy
|
|
VPS name: vps-123c23bd.vps.ovh.net
|
|
IPv4 address: 51.91.109.47
|
|
IPv6 address: 2001:41d0:42b:61::1
|
|
Username: ubuntu
|
|
Password: <PASSWORD>
|
|
|
|
- `ssh ubuntu@vps-123c23bd.vps.ovh.net`
|
|
```
|
|
# 1. Update the system repository
|
|
sudo apt update && sudo apt upgrade -y
|
|
|
|
# 2. Grab the required security certificates and curl
|
|
sudo apt install ca-certificates curl -y
|
|
sudo install -m 0755 -d /etc/apt/keyrings
|
|
|
|
# 3. Download Docker's official GPG keying for package verification
|
|
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
|
|
sudo chmod a+r /etc/apt/keyrings/docker.asc
|
|
|
|
# 4. Inject Docker's official repository into your system's source list
|
|
echo \
|
|
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
|
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
|
|
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
|
|
# 5. Update your system packages using the new official source
|
|
sudo apt update
|
|
|
|
# 6. Install the official Docker Engine and modern Compose Plugin
|
|
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
|
|
|
|
# Give your 'ubuntu' user permission to use Docker without typing 'sudo' every time
|
|
sudo usermod -aG docker $USER
|
|
```
|
|
|
|
- `mkdir -p ~/gitea`
|
|
- `cd ~/gitea`
|
|
- `docker compose up -d`
|
|
- `docker compose logs`
|
|
- `scp -r /Users/jamestwose/Coding/jms-gitea/gcloud-version/gitea-dump/* ubuntu@vps-123c23bd.vps.ovh.net:~/gitea/gitea_data/` |