update README.md

This commit is contained in:
Rafi
2023-03-01 16:37:56 +08:00
parent 51e8ea8d1a
commit b316ac0b4a
3 changed files with 26 additions and 58 deletions

View File

@@ -39,10 +39,9 @@ services:
- '80:80' - '80:80'
networks: networks:
- chatgpt_ui_network - chatgpt_ui_network
backend-asgi-server: backend-wsgi-server:
image: wongsaang/chatgpt-ui-asgi-server:latest image: wongsaang/chatgpt-ui-wsgi-server:latest
environment: environment:
- APP_DOMAIN=locahlost:9000 # The URL of the api server
# - DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # If this parameter is not set, the built-in Sqlite will be used by default. It should be noted that if you do not connect to an external database, the data will be lost after the container is destroyed. # - DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # If this parameter is not set, the built-in Sqlite will be used by default. It should be noted that if you do not connect to an external database, the data will be lost after the container is destroyed.
- DJANGO_SUPERUSER_USERNAME=admin # default superuser name - DJANGO_SUPERUSER_USERNAME=admin # default superuser name
- DJANGO_SUPERUSER_PASSWORD=password # default superuser password - DJANGO_SUPERUSER_PASSWORD=password # default superuser password
@@ -54,11 +53,11 @@ services:
backend-web-server: backend-web-server:
image: wongsaang/chatgpt-ui-web-server:latest image: wongsaang/chatgpt-ui-web-server:latest
environment: environment:
- BACKEND_URL=http://backend-asgi-server:8000 - BACKEND_URL=http://backend-wsgi-server:8000
ports: ports:
- '9000:80' - '9000:80'
depends_on: depends_on:
- backend-asgi-server - backend-wsgi-server
networks: networks:
- chatgpt_ui_network - chatgpt_ui_network

View File

@@ -1,37 +0,0 @@
version: '3'
services:
client:
image: wongsaang/chatgpt-ui-client:latest
environment:
- SERVER_DOMAIN=http://backend-web-server
depends_on:
- backend-web-server
ports:
- '80:80'
networks:
- chatgpt_ui_network
backend-asgi-server:
image: wongsaang/chatgpt-ui-asgi-server:latest
environment:
# - DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # If this parameter is not set, the built-in Sqlite will be used by default. It should be noted that if you do not connect to an external database, the data will be lost after the container is destroyed.
- DJANGO_SUPERUSER_USERNAME=admin # default superuser name
- DJANGO_SUPERUSER_PASSWORD=password # default superuser password
- DJANGO_SUPERUSER_EMAIL=admin@example.com # default superuser email
ports:
- '8000:8000'
networks:
- chatgpt_ui_network
backend-web-server:
image: wongsaang/chatgpt-ui-web-server:latest
environment:
- BACKEND_URL=http://backend-asgi-server:8000
ports:
- '9000:80'
depends_on:
- backend-asgi-server
networks:
- chatgpt_ui_network
networks:
chatgpt_ui_network:
driver: bridge

View File

@@ -1,31 +1,37 @@
version: '3' version: '3'
services: services:
client: client:
build: image: wongsaang/chatgpt-ui-client:latest
context: .
dockerfile: ./Dockerfile
environment: environment:
- SERVER_DOMAIN=http://backend:8000 - SERVER_DOMAIN=http://backend-web-server
depends_on: depends_on:
- backend - backend-web-server
volumes:
- backend_static:/app/static
ports: ports:
- '80:80' - '80:80'
networks: networks:
- chatgpt_ui_network - chatgpt_ui_network
backend: backend-wsgi-server:
image: 'wongsaang/chatgpt-ui-server:latest' image: wongsaang/chatgpt-ui-wsgi-server:latest
volumes: environment:
- backend_static:/app/static # - DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # If this parameter is not set, the built-in Sqlite will be used by default. It should be noted that if you do not connect to an external database, the data will be lost after the container is destroyed.
- DJANGO_SUPERUSER_USERNAME=admin # default superuser name
- DJANGO_SUPERUSER_PASSWORD=password # default superuser password
- DJANGO_SUPERUSER_EMAIL=admin@example.com # default superuser email
ports: ports:
- '8000:8000' - '8000:8000'
networks: networks:
- chatgpt_ui_network - chatgpt_ui_network
backend-web-server:
image: wongsaang/chatgpt-ui-web-server:latest
environment:
- BACKEND_URL=http://backend-wsgi-server:8000
ports:
- '9000:80'
depends_on:
- backend-wsgi-server
networks:
- chatgpt_ui_network
networks: networks:
chatgpt_ui_network: chatgpt_ui_network:
driver: bridge driver: bridge
volumes:
backend_static: