Merge pull request #347 from xiangsx/main
Remove duplicate docker-compose.yml files and add proxy config
This commit is contained in:
commit
72dbed8389
3 changed files with 10 additions and 20 deletions
|
@ -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
|
||||||
|
|
|
@ -3,7 +3,13 @@ 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 # modify this for your proxy
|
||||||
|
# - https_proxy=http://127.0.0.1:1080 # modify this for your proxy
|
||||||
|
image: img_gpt4free
|
||||||
ports:
|
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 a new issue