-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
更改端口后界面全白 #75
Comments
Nginx的报错
|
是使用 docker 部署的吗? |
我除了修改了ports以外没有修改任何配置 而且我进去frontend看了nginx的配置 我觉得应该没有什么问题 如果需要我可以发给你更详细的logs |
补充:看起来好像是后端的问题 如果我直接访问
但是在浏览器端会报错502 Bad Gateway |
是参考了这个 issue 吗?#71 |
是的 我直接复制的 没有仔细看 我在根据上面的issues重新部署一下 |
之前我做了一个比较傻的改动,所以说现在的数据库和密码只能维持原状,否则后端会连接不上数据库。 |
不 是端口的问题 我改成80后可以正常访问 但是改成10006就不行 但是最奇怪的是我在shareme-frontend的容器中执行 curl -i http://pasteme-backend:8000/api/?method=beat是可以显示301 redirect,但是在容器外就不行了 |
可以发一下现在的 |
version: "3"
services:
pasteme-frontend:
image: registry.cn-hangzhou.aliyuncs.com/pasteme/frontend:3.1.0
container_name: pasteme-frontend
depends_on:
- pasteme-backend
healthcheck:
test: ["CMD", "service", "nginx", "status"]
interval: 45s
timeout: 3s
retries: 3
restart: always
ports:
- 10006:8080
volumes:
- ./logs/:/var/lib/pasteme/
- ./usr/:/www/pasteme/usr/
pasteme-backend:
image: registry.cn-hangzhou.aliyuncs.com/pasteme/backend:beta
container_name: pasteme-backend
depends_on:
- pasteme-mysql
healthcheck:
test: ["CMD", "wget", "localhost:8000/?method=beat", "--output=/dev/null"]
interval: 45s
timeout: 3s
retries: 3
restart: always
environment:
PASTEMED_DB_USERNAME: username
PASTEMED_DB_PASSWORD: password
PASTEMED_DB_SERVER: pasteme-mysql
PASTEMED_DB_PORT: 3306
PASTEMED_DB_DATABASE: pasteme
pasteme-mysql:
image: mysql:5.5
container_name: pasteme-mysql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 45s
timeout: 3s
retries: 3
restart: always
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci'
]
environment:
MYSQL_USER: username
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: pasteme
MYSQL_MAX_ALLOWED_PACKET: 128M
MYSQL_INNODB_LOG_FILE_SIZE: 64M
volumes:
- ./mysql:/var/lib/mysql |
没能复现问题,玄学解决了。 |
具体是把frontend中的ports 改为10006:8080,但是无法访问 请问是什么原因呢
The text was updated successfully, but these errors were encountered: