Fix Formatting in Docker Readme (#608)

Fix formatting
This commit is contained in:
Salim B
2023-07-24 10:57:14 +02:00
committed by GitHub
parent e5d06de68e
commit f743fb18fb

View File

@@ -6,33 +6,33 @@ Follow the instructions below to quickly get Formbricks running on your system w
Open a terminal and create a new directory for Formbricks, then navigate into this new directory:
\```bash
```bash
mkdir formbricks-quickstart && cd formbricks-quickstart
\```
```
2. **Download the Docker-Compose File**
Download the docker-compose file directly from the Formbricks repository:
\```bash
```bash
curl -o docker-compose.yml https://raw.githubusercontent.com/formbricks/formbricks/docker/main/docker-compose.yml
\```
```
3. **Generate NextAuth Secret**
Next, you need to generate a NextAuth secret. This will be used for session signing and encryption. The `sed` command below generates a random string using `openssl`, then replaces the `NEXTAUTH_SECRET:` placeholder in the `docker-compose.yml` file with this generated secret:
\```bash
```bash
sed -i "/NEXTAUTH_SECRET:$/s/NEXTAUTH_SECRET:.\*/NEXTAUTH_SECRET: $(openssl rand -base64 32)/" docker-compose.yml
\```
```
4. **Start the Docker Setup**
You're now ready to start the Formbricks Docker setup. The following command will start Formbricks together with a postgreSQL database using Docker Compose:
\```bash
```bash
docker compose up -d
\```
```
The `-d` flag will run the containers in detached mode, meaning they'll run in the background.