按照官方docker-compose安装后,页面如下:
默认账户密码:
admin@example.com/changeme
点击sign in,提示Bad Gateway
打开调试
重装后依然如此,最后查阅githup issue 找到答案
https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3237
但是按照他的做法,我依然有问题,因为我是新装,所以我直接
docker-compose down rm -rf data/ letsencrypt/
然后修改docker-compose.yml
version: '3' services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped ports: - '80:80' - '81:81' - '443:443' environment: DB_MYSQL_HOST: "db" DB_MYSQL_PORT: 3306 DB_MYSQL_USER: "npm" DB_MYSQL_PASSWORD: "(PASSWORD)" DB_MYSQL_NAME: "npm" volumes: - ./data:/data - ./letsencrypt:/etc/letsencrypt db: image: 'jc21/mariadb-aria:latest' restart: unless-stopped environment: MYSQL_ROOT_PASSWORD: '(PASSWORD)' MYSQL_DATABASE: 'npm' MYSQL_USER: 'npm' MYSQL_PASSWORD: '(PASSWORD)' volumes: #- ./data/mysql:/var/lib/mysql - ./mysql:/var/lib/mysql
最后
docker-compose up -d
成功登录