fixed docker health check

This commit is contained in:
Aaron Job
2023-09-15 22:33:03 +00:00
parent 1f41e64c26
commit 242db9c4b2
2 changed files with 5 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ You specify what kind of an app you want to build. Then, GPT Pilot asks clarifyi
<!-- TOC --> <!-- TOC -->
* [🔌 Requirements](#-requirements) * [🔌 Requirements](#-requirements)
* [🚦How to start using gpt-pilot?](#how-to-start-using-gpt-pilot) * [🚦How to start using gpt-pilot?](#how-to-start-using-gpt-pilot)
* [🐳 How to start gpt-pilot in docker?](#how-to-start-using-gpt-pilot-in-docker)
* [🧑‍💻️ Other arguments](#%EF%B8%8F-other-arguments) * [🧑‍💻️ Other arguments](#%EF%B8%8F-other-arguments)
* [🔎 Examples](#-examples) * [🔎 Examples](#-examples)
* [Real-time chat app](#-real-time-chat-app) * [Real-time chat app](#-real-time-chat-app)
@@ -76,7 +77,7 @@ All generated code will be stored in the folder `workspace` inside the folder na
**IMPORTANT: To run GPT Pilot, you need to have PostgreSQL set up on your machine** **IMPORTANT: To run GPT Pilot, you need to have PostgreSQL set up on your machine**
<br> <br>
# 🐳 How to start gpt-pilot in docker? ## 🐳 How to start gpt-pilot in docker?
1. `git clone https://github.com/Pythagora-io/gpt-pilot.git` (clone the repo) 1. `git clone https://github.com/Pythagora-io/gpt-pilot.git` (clone the repo)
2. Update the `docker-compose.yml` environment variables 2. Update the `docker-compose.yml` environment variables
3. run `docker compose build`. this will build a gpt-pilot container for you. 3. run `docker compose build`. this will build a gpt-pilot container for you.

View File

@@ -20,7 +20,8 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
ports: ports:
- "7681:7681" - "7681:7681"
- "3000:3000"
depends_on: depends_on:
postgres: postgres:
condition: service_healthy condition: service_healthy
@@ -34,7 +35,7 @@ services:
ports: ports:
- "5432:5432" - "5432:5432"
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U user"] test: ["CMD-SHELL", "pg_isready -U pilot"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3