-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -51,6 +49,7 @@ services: | |
- mongo-data:/data/db | ||
networks: | ||
- pastebook-network | ||
pull_policy: always | ||
|
||
volumes: | ||
mongo-data: | ||
|
@@ -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. | ||
``` | ||
|
@@ -123,7 +120,7 @@ server { | |
server { | ||
listen 443 ssl; | ||
server_name api<DOMAIN> | ||
server_name api.<DOMAIN> | ||
location / { | ||
proxy_buffering off; | ||
|
@@ -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. | ||
💜 |