From 016a00bf2fee3e0dd6c801c214c9eab9e12a8ddc Mon Sep 17 00:00:00 2001 From: godd0t Date: Mon, 15 May 2023 15:37:00 +0200 Subject: [PATCH] fix: settings && update readme --- README.md | 49 ++++++++++++++++++++++++------------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index e4fd2a4..0e9789e 100644 --- a/README.md +++ b/README.md @@ -42,16 +42,16 @@ This quickstart provides an easy way to initiate a Django project using Docker. cd django-docker-quickstart ``` -3. **Copy the `env.example` file to `.env` and update the values as needed:** -

- **For Linux/macOS:** - ```bash - cp env.example .env - ``` - **For Windows (Command Prompt):** - ```cmd - Copy-Item -Path env.example -Destination .env - ``` +3. **Copy the `env.example` file to `.env` and update the values as needed:** + + - **For Linux/macOS:** + ```bash + cp env.example .env + ``` + - **For Windows (Command Prompt):** + ```cmd + Copy-Item -Path env.example -Destination .env + ``` --- @@ -74,8 +74,8 @@ This quickstart provides an easy way to initiate a Django project using Docker. pip install -r src/requirements-dev.txt ``` -4. **Build the image and run the container:** -

+4. **Build the image and run the container:** + - If buildkit is not enabled, enable it and build the image: ```bash DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose -f docker-compose.yml up --build -d @@ -95,22 +95,21 @@ You can now access the application at http://localhost:8000. The development env ### Production Setup -1. **Build the image and run the container:** -

- - If buildkit is not enabled, enable it and build the image: - ```bash - DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose -f docker-compose.prod.yml up --build -d - ``` +1. **Build the image and run the container:** - - If buildkit is enabled, - build the image: + - If buildkit is not enabled, enable it and build the image: ```bash - docker-compose -f docker-compose.prod.yml up --build -d - ``` + DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose -f docker-compose.prod.yml up --build -d + ``` + + - If buildkit is enabled, build the image: + ```bash + docker-compose -f docker-compose.prod.yml up --build -d + ``` - Or, use the shortcut: - ```bash - make build-prod - ``` + ```bash + make build-prod + ``` ---