nginx-proxy-manager初次登录502 bad gateway

nginx-proxy-manager初次登录502 bad gateway

按照官方docker-compose安装后,页面如下:
默认账户密码:

[email protected]/changeme

nginx-proxy-manager初次登录502 bad gateway_第1张图片
点击sign in,提示Bad Gateway
nginx-proxy-manager初次登录502 bad gateway_第2张图片
打开调试
在这里插入图片描述
重装后依然如此,最后查阅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

成功登录
nginx-proxy-manager初次登录502 bad gateway_第3张图片

你可能感兴趣的:(nginx,gateway,运维)