mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-29 22:34:08 +03:00
Merge pull request #347 from xiangsx/main
Remove duplicate docker-compose.yml files and add proxy config
This commit is contained in:
commit
72dbed8389
@ -127,17 +127,13 @@ Run
|
||||
```
|
||||
docker run -p 8501:8501 gpt4free:latest
|
||||
```
|
||||
Another way - docker-compose (no docker build/run needed)
|
||||
```
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
## Deploy using docker-compose
|
||||
|
||||
Run the following:
|
||||
|
||||
```
|
||||
docker-compose up -d
|
||||
docker-compose up --build -d
|
||||
```
|
||||
|
||||
## ChatGPT clone
|
||||
|
@ -2,8 +2,14 @@ version: "3.9"
|
||||
|
||||
services:
|
||||
gpt4free:
|
||||
build:
|
||||
context: .
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
container_name: dc_gpt4free
|
||||
# environment:
|
||||
# - http_proxy=http://127.0.0.1:1080 # modify this for your proxy
|
||||
# - https_proxy=http://127.0.0.1:1080 # modify this for your proxy
|
||||
image: img_gpt4free
|
||||
ports:
|
||||
- "8501:8501"
|
||||
- 8501:8501
|
||||
restart: always
|
@ -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
|
Loading…
Reference in New Issue
Block a user