Skip to content

Commit 83c8328

Browse files
committed
deploy docs
1 parent 395327c commit 83c8328

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

deploy/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Deploying vbos-backend
2+
3+
This app is currently deployed on a Digital Ocean Droplet using docker-caddy reverse proxy.
4+
All deploy related configuration are in the `deploy/` directory.
5+
6+
1. `deploy/caddy/docker-compose.yml` — starts the caddy reverse proxy which will watch any new containers with the caddy label.
7+
2. `deploy/vbos/docker-compose.yml` — pulls the latest vbos-backend image and runs the application, with `.env` as the environment.
8+
9+
To update or redeploy:
10+
1. First ssh into the server. Keys are in 1PW
11+
2. Fetch code and run migrations.
12+
* Activate venv. `. ~/vbos-env/bin/activate`
13+
* `cd vbos-backend && git pull`. `python manage.py migrate`
14+
3. Then run `docker compose -f deploy/vbos/docker-compose.yml pull` to pull the new image. By default the image tag is `main`
15+
4. Then run `docker compose -f deploy/vbos/docker-compose.yml --env-file /home/devseed/vbos-backend/.env up --force-recreate -d --no-deps vbos-backend` — this will start a new container and kill the older one for deploys with no downtime

0 commit comments

Comments
 (0)