Skip to content

Commit

Permalink
build(sh): 💚 Fix docker-compose builder entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 14, 2022
1 parent ec8a27e commit e4a3722
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
12 changes: 5 additions & 7 deletions apps/docs/docs/self-hosting/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 1 addition & 7 deletions typebot-config.env
Original file line number Diff line number Diff line change
@@ -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

2 comments on commit e4a3722

@vercel
Copy link

@vercel vercel bot commented on e4a3722 Mar 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./apps/docs

docs-git-main-typebot-io.vercel.app
docs.typebot.io
docs-typebot-io.vercel.app

Please sign in to comment.