Skip to content

Commit 44b8a88

Browse files
committed
add links to deployment docs
1 parent 4108825 commit 44b8a88

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

deployment/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ VPS = Virtual Private Server
99
1. Create the VPS, Digital Ocean droplets are usually good for beginners (cheapest will do)
1010
2. Point your subdomain to the VPS (this will be an A record with the VPS's public IP)
1111
3. SSH into the VPS, you can usually do this from the Digital Ocean web interface.
12-
4. Run the command `<insert command here>` (This will take a while)
12+
4. Run the command (This will take a while)
13+
14+
`curl -s -L https://github.com/duinoapp/duinoapp-server/blob/master/deployment/init-server.sh | sudo bash`
1315
5. Run the command `nano docker-compose.yml`
1416
6. Edit the content of the file where indicated, you should enter details like the domain, subdomain, email, server info
1517
7. When done editing, press `Ctl+X`, `Y`, and then `Enter`

deployment/docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ services:
2424
duinoapp:
2525
image: duinoapp/duinoapp-server:latest
2626
container_name: duinoapp
27+
restart: unless-stopped
2728
environment: # update these, server info displayed to users
28-
- SERVER_INFO_NAME="Australian Server"
29+
- SERVER_INFO_NAME="Example Server"
2930
- SERVER_INFO_LOCATION="Australia/Sydney"
3031
- SERVER_INFO_COUNTRY="AU"
3132
- SERVER_INFO_OWNER="Duino App"
3233
- SERVER_INFO_WEBSITE="duino.app"
33-
- SERVER_INFO_DESCRIPTION="Server run on Vegemite"
34+
- SERVER_INFO_DESCRIPTION="Just Another Example Server"

deployment/init-server.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,9 @@ sudo apt-get install -y docker-ce docker-ce-cli containerd.io
1111
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
1212
sudo chmod +x /usr/local/bin/docker-compose
1313

14+
sudo curl -L "https://raw.githubusercontent.com/duinoapp/duinoapp-server/master/deployment/docker-compose.yml" -o docker-compose.yml
15+
mkdir -p nginx/nginx/site-confs
16+
sudo curl -L "https://raw.githubusercontent.com/duinoapp/duinoapp-server/master/deployment/default" -o nginx/nginx/site-confs/default
17+
1418
sudo docker pull duinoapp/duinoapp-server:latest
1519

0 commit comments

Comments
 (0)