mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2025-12-26 16:57:23 +01:00
added in docker and docker compose files
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM python:3
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN python -m venv pilot-env
|
||||
RUN source pilot-env/bin/activate
|
||||
RUN pip install -r requirements.txt
|
||||
RUN python ./pilot/db_init.py
|
||||
|
||||
CMD [ "python", "./pilot/main.py" ]
|
||||
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
version: '3'
|
||||
services:
|
||||
gpt-pilot:
|
||||
environment:
|
||||
- ENDPOINT=OPENAI
|
||||
- OPENAI_API_KEY=
|
||||
- MODEL_NAME=gpt-4
|
||||
- MAX_TOKENS=8192
|
||||
- DB_NAME=gpt-pilot
|
||||
- DB_HOST=postgres
|
||||
- DB_PORT=5432
|
||||
- DB_USER=gpt-pilot
|
||||
- DB_PASSWORD=gpt-pilot
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
pgadmin:
|
||||
container_name: pgadmin4_container
|
||||
image: dpage/pgadmin4
|
||||
restart: always
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: admin@admin.com
|
||||
PGADMIN_DEFAULT_PASSWORD: gpt-pilot
|
||||
ports:
|
||||
- "5050:80"
|
||||
postgres:
|
||||
image: postgres
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: gpt-pilot
|
||||
POSTGRES_PASSWORD: gpt-pilot
|
||||
POSTGRES_DB: gpt-pilot
|
||||
ports:
|
||||
- "5432:5432"
|
||||
Reference in New Issue
Block a user