1
0
Fork 0

Merge pull request #347 from xiangsx/main

Remove duplicate docker-compose.yml files and add proxy config
This commit is contained in:
t.me/xtekky 2023-05-01 18:23:29 +01:00 committed by GitHub
commit 72dbed8389
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 20 deletions

View file

@ -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

View file

@ -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

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