chatgpt-ui icon indicating copy to clipboard operation
chatgpt-ui copied to clipboard

ARM机,端口占用,Docker新手请帮忙检查yml文件,以及nginx分流

Open nulshell opened this issue 1 year ago • 0 comments

感谢作者分享了这个项目,请问这个项目可以安装在 ARM64 架构的 aarch64 主机上吗?目前80,443,8000等端口都已经在 nginx, caddy 的占用中了。我刚接触 docker,还不熟悉。可以请你帮忙检查一下下面的 docker-compose.yml 文件有没有错误?如果修改正确后,是否运行 docker-compose up --pull always -d 就可以自动下载镜像并配置运行了?另外,有可能使用127.0.0.1替换下面文件中的domain,然后用原有的nginx增加不同的分流路径来指向client, wsgi-server, backend-web-server吗?比如用 www.mytestdomain.com/chatgpt 来指向主机上的 127.0.0.1:8800,再指向docker上的client。谢谢!

version: '3' services: client: platform: linux/aarch64 image: wongsaang/chatgpt-ui-client:latest environment: - SERVER_DOMAIN=http://gpt.mytestdomain.com - DEFAULT_LOCALE=en - NUXT_PUBLIC_APP_NAME='ChatGPT UI' # The name of the application - NUXT_PUBLIC_TYPEWRITER=true # Whether to enable the typewriter effect, default false - NUXT_PUBLIC_TYPEWRITER_DELAY=50 # The delay time of the typewriter effect, default 50ms depends_on: - backend-web-server ports: - 8800:80 networks: - chatgpt_ui_network restart: always backend-wsgi-server: platform: linux/aarch64 image: wongsaang/chatgpt-ui-wsgi-server:latest environment: - DEBUG=False # Whether to enable debug mode, default False - APP_DOMAIN=gpt.mytestdomain.com:9000 - SERVER_WORKERS=3 # The number of worker processes for handling requests. - WORKER_TIMEOUT=180 # Workers silent for more than this many seconds are killed and restarted. default 180s - 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=mypassword # default superuser password - [email protected] # default superuser email - ACCOUNT_EMAIL_VERIFICATION=optional # Determines the e-mail verification method during signup – choose one of "none", "optional", or "mandatory". Default is "optional". If you don't need to verify the email, you can set it to "none". # If you want to use the email verification function, you need to configure the following parameters - EMAIL_HOST=smtp.mailgun.org - EMAIL_PORT=587 - EMAIL_HOST_USER=myuser - EMAIL_HOST_PASSWORD=mypass - EMAIL_USE_TLS=True - EMAIL_FROM=no-reply@localhost #Default sender email address

volumes:

- db_sqlite3:/app/db.sqlite3

ports:
  - 8888:8000
networks:
  - chatgpt_ui_network
restart: always

backend-web-server: platform: linux/aarch64 image: wongsaang/chatgpt-ui-web-server:latest environment: - BACKEND_URL=http://gpt.mytestdomain.com:8888 ports: - 9000:80 depends_on: - backend-wsgi-server networks: - chatgpt_ui_network restart: always

networks: chatgpt_ui_network: driver: bridge

nulshell avatar May 13 '23 05:05 nulshell