Document compose-only Titan deployment
This commit is contained in:
+11
-10
@@ -1,9 +1,8 @@
|
|||||||
# Titan Deployment
|
# Titan Deployment
|
||||||
|
|
||||||
Recommended paths on Titan:
|
Recommended path on Titan:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
/root/repo/aishare
|
|
||||||
/root/compose/aishare
|
/root/compose/aishare
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -11,10 +10,10 @@ Clone/update the repo:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
ssh titan-reverse
|
ssh titan-reverse
|
||||||
mkdir -p /root/repo /root/compose
|
mkdir -p /root/compose
|
||||||
git clone gitea:cabbage/aishare.git /root/repo/aishare
|
git clone https://git.xcel.me/cabbage/aishare.git /root/compose/aishare
|
||||||
cp /root/repo/aishare/compose.yml /root/compose/aishare/compose.yml
|
cd /root/compose/aishare
|
||||||
cp /root/repo/aishare/.env.example /root/compose/aishare/.env
|
cp .env.example .env
|
||||||
```
|
```
|
||||||
|
|
||||||
Edit `/root/compose/aishare/.env` and set `AISHARE_ADMIN_TOKEN`.
|
Edit `/root/compose/aishare/.env` and set `AISHARE_ADMIN_TOKEN`.
|
||||||
@@ -23,8 +22,10 @@ Start:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /root/compose/aishare
|
cd /root/compose/aishare
|
||||||
docker compose up --build -d
|
mkdir -p data
|
||||||
docker compose logs --tail=80 aishare
|
chown -R 1001:1001 data
|
||||||
|
docker-compose -f compose.yml up --build -d
|
||||||
|
docker-compose -f compose.yml logs --tail=80 aishare
|
||||||
```
|
```
|
||||||
|
|
||||||
Add this location block to the existing `server_name xcel.me` server in `/root/compose/nginx/etc/nginx/sites-available/xcel.me.conf`, before `location /`:
|
Add this location block to the existing `server_name xcel.me` server in `/root/compose/nginx/etc/nginx/sites-available/xcel.me.conf`, before `location /`:
|
||||||
@@ -51,6 +52,6 @@ location ^~ /aishare/ {
|
|||||||
Reload nginx:
|
Reload nginx:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f /root/compose/nginx/compose.yml exec nginx nginx -t
|
nginx -t
|
||||||
docker compose -f /root/compose/nginx/compose.yml exec nginx nginx -s reload
|
docker exec nginx nginx -s reload
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user