2
0

build(sh): 💚 Fix docker-compose builder entrypoint

This commit is contained in:
Baptiste Arnaud
2022-03-14 16:30:06 +01:00
parent ec8a27e972
commit e4a3722c14
3 changed files with 11 additions and 15 deletions

View File

@ -16,19 +16,17 @@ You need a server with Docker installed. If your server doesn't come with Docker
## Getting started
1. Fork the repository
On your server:
2. Clone the forked repo:
1. Clone the forked repo:
```sh
git clone https://github.com/<your-fork>/typebot.io.git
git clone https://github.com/baptistearno/typebot.io.git
```
3. Edit the `typebot-config.env` file. ([Check out the configuration guide](/self-hosting/configuration))
2. Edit the `typebot-config.env` file. ([Check out the configuration guide](/self-hosting/configuration))
4. Start the applications:
3. Start the applications:
```sh
docker-compose up -d
@ -41,4 +39,4 @@ On your server:
- Start the builder on port 8080
- Start the viewer on port 8081
You should see the login screen if you navigate to `http://{hostname}:8080`. Login with the `${ADMIN_EMAIL}` in order to have access to a Pro account automatically.
You should see the login screen if you navigate to `http://{hostname}:8080`. Login with the `${ADMIN_EMAIL}` to have access to a Pro account automatically.

View File

@ -19,7 +19,11 @@ services:
- '8080:3000'
env_file:
- typebot-config.env
command: 'sleep 10 && npx prisma migrate deploy && node server.js'
entrypoint: >
/bin/sh -c "
sleep 10;
npx prisma migrate deploy;
node server.js;"
typebot_viewer:
depends_on:
- typebot_db

View File

@ -1,11 +1,5 @@
# Shared
# MIGRATION_DATABASE_URL=
DATABASE_URL=postgresql://typebot:typebot@postgres:5432/typebot
NEXT_PUBLIC_VIEWER_URL=http://localhost:8081
ENCRYPTION_SECRET=SgVkYp2s5v8y/B?E(H+MbQeThWmZq4t6
# Builder
ADMIN_EMAIL=contact@baptiste-arnaud.fr
NEXTAUTH_URL=http://localhost:8080
# Viewer
NEXTAUTH_URL=http://localhost:8080