Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
339dd1e0c6 | ||
|
|
122704737a | ||
|
|
bd35c21e2f | ||
|
|
c2705e5f2a | ||
|
|
0e5aeddffa |
26
README.md
26
README.md
@@ -37,35 +37,39 @@ services:
|
||||
client:
|
||||
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
|
||||
backend-asgi-server:
|
||||
image: wongsaang/chatgpt-ui-asgi-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
|
||||
- DJANGO_SUPERUSER_EMAIL=admin@example.com # default superuser email
|
||||
volumes:
|
||||
- backend_static:/app/static
|
||||
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
|
||||
|
||||
volumes:
|
||||
backend_static:
|
||||
```
|
||||
|
||||
### After running
|
||||
|
||||
@@ -3,32 +3,35 @@ services:
|
||||
client:
|
||||
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
|
||||
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
|
||||
volumes:
|
||||
- backend_static:/app/static
|
||||
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
|
||||
|
||||
volumes:
|
||||
backend_static:
|
||||
@@ -12,12 +12,8 @@ server {
|
||||
{
|
||||
proxy_pass ${SERVER_DOMAIN};
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /admin/ {
|
||||
proxy_pass ${SERVER_DOMAIN};
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user