summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-05-01 19:23:29 +0200
committerGitHub <noreply@github.com>2023-05-01 19:23:29 +0200
commit72dbed8389f7ee8cc009e3fee4be65ecc4510716 (patch)
tree1fe5ba7e6ebd74af133621d083e8923fb777d6d3
parentMerge pull request #349 from mishalhossin/patch-2 (diff)
parentAdd proxy config (diff)
downloadgpt4free-72dbed8389f7ee8cc009e3fee4be65ecc4510716.tar
gpt4free-72dbed8389f7ee8cc009e3fee4be65ecc4510716.tar.gz
gpt4free-72dbed8389f7ee8cc009e3fee4be65ecc4510716.tar.bz2
gpt4free-72dbed8389f7ee8cc009e3fee4be65ecc4510716.tar.lz
gpt4free-72dbed8389f7ee8cc009e3fee4be65ecc4510716.tar.xz
gpt4free-72dbed8389f7ee8cc009e3fee4be65ecc4510716.tar.zst
gpt4free-72dbed8389f7ee8cc009e3fee4be65ecc4510716.zip
-rw-r--r--README.md6
-rw-r--r--docker-compose.yaml12
-rw-r--r--docker-compose.yml12
3 files changed, 10 insertions, 20 deletions
diff --git a/README.md b/README.md
index b16a3e49..1ebd8f57 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 3afd6cdf..8098f359 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -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 \ No newline at end of file
diff --git a/docker-compose.yml b/docker-compose.yml
deleted file mode 100644
index e8e7119b..00000000
--- a/docker-compose.yml
+++ /dev/null
@@ -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