From ff44c78d0f7c9d6324e5e9948cb0c30c76d91b42 Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Mon, 17 Apr 2023 21:37:05 +0400 Subject: [PATCH] Fix YAML indentation --- ...023-04-18-using-ferretdb-with-studio-3t.md | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/website/blog/2023-04-18-using-ferretdb-with-studio-3t.md b/website/blog/2023-04-18-using-ferretdb-with-studio-3t.md index 2e22e1ab7e86..2a6f36bb4908 100644 --- a/website/blog/2023-04-18-using-ferretdb-with-studio-3t.md +++ b/website/blog/2023-04-18-using-ferretdb-with-studio-3t.md @@ -34,50 +34,50 @@ We can follow the [FerretDB Docker installation guide](https://docs.ferretdb.io/ 1. Install Docker on your machine if you haven't already done so. 2. Create a docker-compose file with the following configurations: - ```yml - services: - postgres: - image: postgres - environment: - - POSTGRES_USER=username - - POSTGRES_PASSWORD=password - - POSTGRES_DB=ferretdb - volumes: - - ./data:/var/lib/postgresql/data - ferretdb: - image: ghcr.io/ferretdb/ferretdb - restart: on-failure - ports: - - 27017:27017 - environment: - - FERRETDB_POSTGRESQL_URL=postgres://postgres:5432/ferretdb - networks: - default: - name: ferretdb - ``` - - The `postgres` service in the docker compose file runs a PostgreSQL database that will store its data in the "./data" directory on the host machine, which is mounted as a volume in the container. - - Please update the `username` and `password` with your authentication credentials. + ```yaml + services: + postgres: + image: postgres + environment: + - POSTGRES_USER=username + - POSTGRES_PASSWORD=password + - POSTGRES_DB=ferretdb + volumes: + - ./data:/var/lib/postgresql/data + ferretdb: + image: ghcr.io/ferretdb/ferretdb + restart: on-failure + ports: + - 27017:27017 + environment: + - FERRETDB_POSTGRESQL_URL=postgres://postgres:5432/ferretdb + networks: + default: + name: ferretdb + ``` + + The `postgres` service in the docker compose file runs a PostgreSQL database that will store its data in the "./data" directory on the host machine, which is mounted as a volume in the container. + + Please update the `username` and `password` with your authentication credentials. 3. Run the following command to start the services: - ```sh - docker compose up -d - ``` + ```sh + docker compose up -d + ``` 4. For those with mongosh installed, you can run FerretDB with the following command: - ```sh - mongodb://username:password@127.0.0.1/ferretdb?authMechanism=PLAIN - ``` + ```sh + mongodb://username:password@127.0.0.1/ferretdb?authMechanism=PLAIN + ``` - If you don’t have mongosh installed on your system (like me), you can execute it inside a temporary MongoDB container by running the following command: + If you don’t have mongosh installed on your system (like me), you can execute it inside a temporary MongoDB container by running the following command: - ```sh - docker run --rm -it --network=ferretdb --entrypoint=mongosh mongo \ - "mongodb://username:password@ferretdb/ferretdb?authMechanism=PLAIN" - ``` + ```sh + docker run --rm -it --network=ferretdb --entrypoint=mongosh mongo \ + "mongodb://username:password@ferretdb/ferretdb?authMechanism=PLAIN" + ``` And that’s all we need to set up FerretDB on Docker.