diff options
author | xiangsx <1984871009@qq.com> | 2023-05-01 16:47:25 +0200 |
---|---|---|
committer | xiangsx <1984871009@qq.com> | 2023-05-01 16:47:25 +0200 |
commit | 55f2a3365141055db3a1b529d4c8c3b365f4eb2e (patch) | |
tree | 3e1fdaef45f1fe9a3d81281c88823d9ce6eabd43 | |
parent | Merge pull request #332 from mache102/main (diff) | |
download | gpt4free-55f2a3365141055db3a1b529d4c8c3b365f4eb2e.tar gpt4free-55f2a3365141055db3a1b529d4c8c3b365f4eb2e.tar.gz gpt4free-55f2a3365141055db3a1b529d4c8c3b365f4eb2e.tar.bz2 gpt4free-55f2a3365141055db3a1b529d4c8c3b365f4eb2e.tar.lz gpt4free-55f2a3365141055db3a1b529d4c8c3b365f4eb2e.tar.xz gpt4free-55f2a3365141055db3a1b529d4c8c3b365f4eb2e.tar.zst gpt4free-55f2a3365141055db3a1b529d4c8c3b365f4eb2e.zip |
Diffstat (limited to '')
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | docker-compose.yaml | 12 | ||||
-rw-r--r-- | docker-compose.yml | 12 |
3 files changed, 10 insertions, 20 deletions
@@ -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..c9cc7d8f 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 + # - https_proxy=http://127.0.0.1:1080 + 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 |