2
0

fix(docker): 🐛 Fix the whole docker deployment pipeline

I've been able to deploy the application on another machine (finally).
This commit is contained in:
Baptiste Arnaud
2022-03-29 08:45:20 +02:00
parent c64afb7073
commit 1f992c6779
9 changed files with 39 additions and 22 deletions

View File

@ -24,6 +24,7 @@ These variables are shared between builder and viewer. If you host them in a dif
| ENCRYPTION_SECRET | SgVkYp2s5v8y/B?E(H+MbQeThWmZq4t6 | A 256-bit key used to encrypt sensitive data. It is strongly recommended to [generate](https://www.allkeysgenerator.com/Random/Security-Encryption-Key-Generator.aspx) a new one. |
| ADMIN_EMAIL | -- | The email that will get a "Pro" plan on user creation |
| NEXTAUTH_URL | http://localhost:3000 | The builder base URL |
| NEXTAUTH_URL_INTERNAL | -- | The internal builder base URL when `NEXTAUTH_URL` isn't publicly accessible (optionnal) |
| NEXT_PUBLIC_VIEWER_URL | http://localhost:3001 | The viewer base URL |
### SMTP (optional)

View File

@ -18,13 +18,19 @@ You need a server with Docker installed. If your server doesn't come with Docker
On your server:
1. Clone the forked repo:
1. Clone the repo:
```sh
git clone https://github.com/baptistearno/typebot.io.git
```
2. Edit the `typebot-config.env` file. ([Check out the configuration guide](/self-hosting/configuration))
2. Set up environment variables
Copy `apps/builder/.env.production.example` to `apps/builder/.env.production`
Copy `apps/viewer/.env.production.example` to `apps/viewer/.env.production`
Check out the [Configuration guide](https://docs.typebot.io/self-hosting/configuration) to add your environment variables
3. Start the applications: