A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
docs(docker): update docs to add docker deployment example to droplet
Amruth Pillai4dc83c1d7f68
diff --git a/.env.example b/.env.exampleindex 1316dff7d..941bca920 100644--- a/.env.example+++ b/.env.example@@ -3,8 +3,8 @@ TZ=UTCSECRET_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# DatabasePOSTGRES_HOST=localhostdiff --git a/docker-compose.yml b/docker-compose.ymlindex b10318b5a..c4209cadd 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -27,7 +27,6 @@ services:container_name: serverenv_file: .envenvironment:- - PUBLIC_URL=http://<SERVER-IP>- POSTGRES_HOST=postgresdepends_on:- traefik@@ -44,8 +43,6 @@ services:image: amruthpillai/reactive-resume:client-latestcontainer_name: clientenv_file: .env- environment:- - PUBLIC_SERVER_URL=http://<SERVER-IP>/apidepends_on:- traefik- serverdiff --git a/docs/docs/deployment/docker.mdx b/docs/docs/deployment/docker.mdxindex 48d577fdf..095de48d5 100644--- a/docs/docs/deployment/docker.mdx+++ b/docs/docs/deployment/docker.mdx@@ -47,11 +47,10 @@ curl -L https://raw.githubusercontent.com/AmruthPillai/Reactive-Resume/main/.env4. Edit the docker-compose.yml file you just pulled in and update the `<SERVER-IP>` placeholders to your server's public IP (or domain, if applicable). Also, update the `.env` file that was just created and change variables such as `PUBLIC_URL`, `PUBLIC_SERVER_URL` etc. For a clear understanding of what each of the environment variables mean, head over to [this section](/source-code/env-vars) of the docs.To change the default port `80` to something else, say `3000`, just change the properties in docker-compose's traefik service:-+```ymltraefik:- command:- ...+ command: ...- --entrypoints.web.address=:3000ports:- 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.-diff --git a/docs/docs/deployment/index.mdx b/docs/docs/deployment/index.mdxindex 0b33982c4..c58e4fdf0 100644--- a/docs/docs/deployment/index.mdx+++ b/docs/docs/deployment/index.mdx@@ -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)diff --git a/docs/docs/source-code/env-vars.mdx b/docs/docs/source-code/env-vars.mdxindex df782258b..67e7810c3 100644--- a/docs/docs/source-code/env-vars.mdx+++ b/docs/docs/source-code/env-vars.mdx@@ -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.diff --git a/docs/docs/source-code/index.mdx b/docs/docs/source-code/index.mdxindex 989466630..e1246e9a3 100644--- a/docs/docs/source-code/index.mdx+++ b/docs/docs/source-code/index.mdx@@ -10,5 +10,5 @@ The source code to Reactive Resume is available on [GitHub](https://github.com/AIn 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)