docs(docker): update docs to add docker deployment example to droplet

This commit is contained in:
Amruth Pillai
2022-03-14 10:18:04 +01:00
parent 143a123212
commit 4dc83c1d7f
6 changed files with 17 additions and 14 deletions

View File

@ -3,8 +3,8 @@ TZ=UTC
SECRET_KEY=change-me
# URLs
PUBLIC_URL=http://localhost:3000
PUBLIC_SERVER_URL=http://localhost:3100
PUBLIC_URL=http://<SERVER-IP>
PUBLIC_SERVER_URL=http://<SERVER-IP>/api
# Database
POSTGRES_HOST=localhost

View File

@ -27,7 +27,6 @@ services:
container_name: server
env_file: .env
environment:
- PUBLIC_URL=http://<SERVER-IP>
- POSTGRES_HOST=postgres
depends_on:
- traefik
@ -44,8 +43,6 @@ services:
image: amruthpillai/reactive-resume:client-latest
container_name: client
env_file: .env
environment:
- PUBLIC_SERVER_URL=http://<SERVER-IP>/api
depends_on:
- traefik
- server

View File

@ -50,8 +50,7 @@ To change the default port `80` to something else, say `3000`, just change the p
```yml
traefik:
command:
...
command: ...
- --entrypoints.web.address=:3000
ports:
- 3000:3000
@ -63,7 +62,10 @@ traefik:
docker compose up
```
<img width="853" alt="Screenshot 2022-03-14 at 10 08 50 AM" src="https://user-images.githubusercontent.com/1134738/158140209-f80eab18-1575-464c-b29d-ac788bd53e93.png">
<img
width="853"
alt="Screenshot 2022-03-14 at 10 08 50 AM"
src="https://user-images.githubusercontent.com/1134738/158140209-f80eab18-1575-464c-b29d-ac788bd53e93.png"
/>
Now, your application should be running on http://SERVER-IP.

View File

@ -3,3 +3,7 @@ sidebar_position: 4
---
# Deployment
You should be able to deploy the app within minutes by following these guides.
- [Docker](/deployment/docker)

View File

@ -38,7 +38,7 @@ The secret key can be a unique key, a randomly generated string that is used for
**Required**: `yes`
**Description:** URL through which app is accessible
**Default Value:** `http://localhost:3000`
**Default Value:** `http://localhost`
This URL would be used in features like link sharing functionality and authentication redirection. This points only to the client app, as the server would be running on `PORT 3100` always.
@ -47,7 +47,7 @@ This URL would be used in features like link sharing functionality and authentic
**Required**: `yes`
**Description:** URL through which server is accessible
**Default Value:** `http://localhost:3100`
**Default Value:** `http://localhost/api`
This URL is used when export PDF functionality is used within the app and has to reach out to the server.

View File

@ -10,5 +10,5 @@ The source code to Reactive Resume is available on [GitHub](https://github.com/A
In this section, I'll be going through the steps on how you can build the project on your local machine (or the cloud). You can choose one of two paths from here:
- [Docker](source-code/docker)
- [Local Build](source-code/local-build)
- [Docker](/source-code/docker)
- [Local Build](/source-code/local-build)