1
0
Fork 0

Remove duplicate docker-compose.yml

This commit is contained in:
xiangsx 2023-05-01 22:47:25 +08:00
parent 2ae26bfa7e
commit 55f2a33651
3 changed files with 10 additions and 20 deletions

View file

@ -127,17 +127,13 @@ Run
``` ```
docker run -p 8501:8501 gpt4free:latest docker run -p 8501:8501 gpt4free:latest
``` ```
Another way - docker-compose (no docker build/run needed)
```
docker-compose up -d
```
## Deploy using docker-compose ## Deploy using docker-compose
Run the following: Run the following:
``` ```
docker-compose up -d docker-compose up --build -d
``` ```
## ChatGPT clone ## ChatGPT clone

View file

@ -2,8 +2,14 @@ version: "3.9"
services: services:
gpt4free: gpt4free:
build: build:
context: . context: ./
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: dc_gpt4free
environment:
# - http_proxy=http://127.0.0.1:1080
# - https_proxy=http://127.0.0.1:1080
image: img_gpt4free
ports: ports:
- "8501:8501" - 8501:8501
restart: always

View file

@ -1,12 +0,0 @@
version: '3.8'
services:
gpt4:
build:
context: .
dockerfile: Dockerfile
image: gpt4free:latest
container_name: gpt4
ports:
- 8501:8501
restart: unless-stopped