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'
networks:
- chatgpt_ui_network
backend-asgi-server:
image: wongsaang/chatgpt-ui-asgi-server:latest
backend-wsgi-server:
image: wongsaang/chatgpt-ui-wsgi-server:latest
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.
- DJANGO_SUPERUSER_USERNAME=admin # default superuser name
- DJANGO_SUPERUSER_PASSWORD=password # default superuser password
@@ -54,11 +53,11 @@ services:
backend-web-server:
image: wongsaang/chatgpt-ui-web-server:latest
environment:
- BACKEND_URL=http://backend-asgi-server:8000
- BACKEND_URL=http://backend-wsgi-server:8000
ports:
- '9000:80'
depends_on:
- backend-asgi-server
- backend-wsgi-server
networks:
- 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'
services:
client:
build:
context: .
dockerfile: ./Dockerfile
image: wongsaang/chatgpt-ui-client:latest
environment:
- SERVER_DOMAIN=http://backend:8000
- SERVER_DOMAIN=http://backend-web-server
depends_on:
- backend
volumes:
- backend_static:/app/static
- backend-web-server
ports:
- '80:80'
networks:
- chatgpt_ui_network
backend:
image: 'wongsaang/chatgpt-ui-server:latest'
volumes:
- backend_static:/app/static
- chatgpt_ui_network
backend-wsgi-server:
image: wongsaang/chatgpt-ui-wsgi-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-wsgi-server:8000
ports:
- '9000:80'
depends_on:
- backend-wsgi-server
networks:
- chatgpt_ui_network
networks:
chatgpt_ui_network:
driver: bridge
volumes:
backend_static: