Skip to content
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

求指导,数据库连不上 #106

Open
bestZwei opened this issue Dec 28, 2024 · 0 comments
Open

求指导,数据库连不上 #106

bestZwei opened this issue Dec 28, 2024 · 0 comments

Comments

@bestZwei
Copy link

{1D81D572-C845-4E61-A504-DB9B1CA867BE}

{55F684D5-331C-4492-B616-50B140E5D723}

显示{"code":0,"msg":"连接数据库失败:数据库地址填写错误!"}

我在1panel使用的 docker compose:

version: '3'
services:
  dnsmgr-web:
    container_name: dnsmgr-web
    stdin_open: true
    tty: true
    ports:
      - 8085:80
    volumes:
      - /volume1/docker/dnsmgr/web:/app/www
    image: netcccyun/dnsmgr
    environment:
      - DB_HOST=localhost # 1Panel-mysql-JDMB 也试过
      - DB_PORT=3306 
      - DB_USER=root1
      - DB_PASSWORD=12KJ3456 
      - DB_DATABASE=dnsmgr
    networks:
      - dnsmgr-network


networks:
  dnsmgr-network:
    driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant