Commit 580b407399
Unsigned
Layout: unified · split
content/blog/2025-01-23-self-hosting-tandoor.org +13 −11
| @@ -36,13 +36,13 @@ https://raw.githubusercontent.com/vabene1111/recipes/develop/docs/install/docker | |||
| 36 | #+end_src | 36 | #+end_src |
| 37 | 37 | ||
| 38 | Within these files, customize as needed. | 38 | Within these files, customize as needed. |
| 39 | 1. =.env= | 39 | - =.env= |
| 40 | a. Add a =SECRET_KEY= | 40 | - Add a =SECRET_KEY= |
| 41 | b. Define the =ALLOWED_HOSTS= | 41 | - Define the =ALLOWED_HOSTS= |
| 42 | c. Set the =POSTGRES_PASSWORD= | 42 | - Set the =POSTGRES_PASSWORD= |
| 43 | 2. =docker-compose.yml= | 43 | - =docker-compose.yml= |
| 44 | a. Update the =ports= since Nginx on my host is already using port 80 (e.g. | 44 | - Update the =ports= since Nginx on my host is already using port 80 (e.g. |
| 45 | =8087:80=) | 45 | =8087:80=) |
| 46 | 46 | ||
| 47 | Once you've updated and saved the files, you can launch the container. | 47 | Once you've updated and saved the files, you can launch the container. |
| 48 | 48 | ||
| @@ -52,16 +52,18 @@ sudo docker compose up -d | |||
| 52 | 52 | ||
| 53 | The application is now available at =localhost:8087= or =ip_address:8087= if | 53 | The application is now available at =localhost:8087= or =ip_address:8087= if |
| 54 | accessing via a different machine. If accessing via a different machine, | 54 | accessing via a different machine. If accessing via a different machine, |
| 55 | remember to allow port 8087 through any existing firewalls. | 55 | remember to allow port =8087= through any existing firewalls. |
| 56 | 56 | ||
| 57 | ** Nginx Reverse Proxy | 57 | ** Nginx Reverse Proxy |
| 58 | 58 | ||
| 59 | Now that Tandoor is available locally, let's connect it to the Nginx web server | 59 | Now that Tandoor is available locally, let's connect it to the Nginx web server |
| 60 | running on the host machine. | 60 | running on the host machine. |
| 61 | 61 | ||
| 62 | > Note: I use Nginx configuration files within the =conf.d= directory, but you | 62 | #+begin_quote |
| 63 | > may need to use the =sites-available= directory, depending on your | 63 | Note: I use Nginx configuration files within the =conf.d= directory, but you may |
| 64 | > installation of Nginx. | 64 | need to use the =sites-available= directory, depending on your installation of |
| 65 | Nginx. | ||
| 66 | #+end_quote | ||
| 65 | 67 | ||
| 66 | #+begin_src shell | 68 | #+begin_src shell |
| 67 | cd /etc/nginx/conf.d/ | 69 | cd /etc/nginx/conf.d/ |