Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks authored Dec 3, 2024
1 parent 382e5b0 commit dbd3327
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ services:

frontend:
image: loudbook/pastebook-frontend:latest
build:
args:
VITE_API_URL: ""
ports:
- "80:3000"
depends_on:
- pastebook-backend
networks:
- pastebook-network
pull_policy: always

mongo:
image: mongo:6.0
Expand All @@ -51,6 +49,7 @@ services:
- mongo-data:/data/db
networks:
- pastebook-network
pull_policy: always

volumes:
mongo-data:
Expand All @@ -69,8 +68,6 @@ All of the following values must be changed.

`S3_ENDPOINT` - The endpoint associated with your R2 bucket, S3 bucket, etc.

`VITE_API_URL` - The full endpoint of the API. When locally testing this is `http://localhost:8080`. In my case, when in production, it would be `https://api.pastebook.dev/`.

### Creation
Run the following.
```
Expand Down Expand Up @@ -123,7 +120,7 @@ server {
server {
listen 443 ssl;
server_name api<DOMAIN>
server_name api.<DOMAIN>
location / {
proxy_buffering off;
Expand All @@ -150,6 +147,14 @@ Run the following.
systemctl restart nginx
```

# Updating PasteBook
Run the following commands in succession.
```bash
docker compose stop
docker compose pull
docker compose up -d
```

# Final Notes
Wow. There was a lot that can go wrong there. I'm not an expert. If you need help, you can email me at [email protected] or find me elsewhere.
💜

0 comments on commit dbd3327

Please sign in to comment.