swoiow opened a new issue, #12858:
URL: https://github.com/apache/apisix/issues/12858

   ### Description
   
   i can docker up with my config.
   **the question is how can i access the admin dashboard? admin/admin is 
error!!!**
   
   the old dashboard is deprecated. so i maked with `#`
   
https://apisix.apache.org/zh/docs/apisix/dashboard/#%E6%97%A7%E7%89%88%E6%9C%AC%E7%9A%84-apache-apisix-dashboard
   
   ## apisix_conf/config.yaml
   ```
   # apisix_conf/config.yaml
   deployment:
     admin:
       enable_admin_ui: true
       allow_admin:
         - 0.0.0.0
       admin_key:
         - name: admin
           role: admin
           key: ${{APISIX_DASHBOARD_ADMIN_KEY}}
     role: traditional
     role_config:
       config_provider: etcd
     etcd:
       host:
         - "http://etcd:2379";  # 这里连 compose 里的 etcd 服务名
       prefix: "/apisix"
       timeout: 30
   
   apisix:
     node_listen:
       - 80
     ssl:
       enable_http3: true
     ...
   ```
   
   ## docker-compose.yml
   ``` 
   services:
     etcd:
       image: gcr.io/etcd-development/etcd:v3.5.26
       environment:
         - ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
       ports:
         - "2379:2379"
       command: >
         /usr/local/bin/etcd
         --name s1
         --data-dir /etcd-data
         --listen-client-urls http://0.0.0.0:2379
       volumes:
         - etcd_data:/etcd-data
       restart: unless-stopped
   
     apisix:
       image: apache/apisix
       depends_on:
         - etcd
       ulimits:
         nofile:
           soft: 65535
           hard: 65535
       environment:
         - APISIX_DASHBOARD_ADMIN_KEY=nzui82a86qjxxkvm7wu41gvbklcgtor9
       volumes:
         - ./apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml
       ports:
         - "80:9080/tcp"
         - "443:9443/tcp"
         - "443:9443/udp"  # QUIC 必须开启 UDP
         - "9180:9180/tcp" # Admin API 端口
       restart: unless-stopped
   
   #  dashboard:
   #    image: apache/apisix-dashboard
   #    depends_on:
   #      - apisix
   #    environment:
   #      - APISIX_DASHBOARD_ADMIN_KEY=nzui82a86qjxxkvm7wu41gvbklcgtor9
   #    ports:
   #      - "9000:9000" # Dashboard 访问端口
   #    volumes:
   #      - 
./dashboard_conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml:ro
   #    restart: unless-stopped
   
   volumes:
     etcd_data:
   ```
   
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   
   ---
   
   all above is latest version.
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to