diff --git a/apps/docs/docs/self-hosting/docker.md b/apps/docs/docs/self-hosting/docker.md index 5053f5214..9fac1b91d 100644 --- a/apps/docs/docs/self-hosting/docker.md +++ b/apps/docs/docs/self-hosting/docker.md @@ -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//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. diff --git a/docker-compose.yml b/docker-compose.yml index 1f6254398..e9d2bba62 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/typebot-config.env b/typebot-config.env index e62e1fa68..c9d9fadfe 100644 --- a/typebot-config.env +++ b/typebot-config.env @@ -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 \ No newline at end of file +NEXTAUTH_URL=http://localhost:8080 \ No newline at end of file