yinyuncan commented on issue #2733:
URL: 
https://github.com/apache/apisix-dashboard/issues/2733#issuecomment-1423433204

   > How did you deploy apisix and dashboard?
   
   This is the docker-compose deployment file
   docker-compose.yml
   ```yml
   version: "3"
   services:
     apisix-dashboard:
       image: apache/apisix-dashboard:2.15.0-centos
       container_name: apisix-dashboard
       restart: always
       volumes:
       - ./dashboard_conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml
       - ./dashboard_log:/usr/local/apisix-dashboard/logs
       ports:
       - "9000:9000"
       networks:
         apisix:
     apisix:
       image: apache/apisix:2.15.1-centos
       container_name: apisix
       restart: always
       volumes:
         - ./apisix_log:/usr/local/apisix/logs
         - ./apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml
       depends_on:
         - etcd
       ##network_mode: host
       ports:
         # http
         - "80:80/tcp"
         # https
         - "443:443/tcp"
         # apisix管理端接口
         - "9080:9080"
         # 内部状态信息
         - "9099:9099"
         # prometheus指标
         - "9091:9091"
         # mqtt/tcp
         - "1999:1999/tcp"
         # 数据库/tcp
         - "2021:1998/tcp"
       networks:
         apisix:
   
     etcd:
       image: bitnami/etcd:3.4.15
       container_name: etcd
       restart: always
       privileged: true
       volumes:
         - etcd_data:/bitnami/etcd
       environment:
         ETCD_ENABLE_V2: "true"
         ALLOW_NONE_AUTHENTICATION: "yes"
         ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2381";
         ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2381";
       ports:
         - "2381:2381/tcp"
       networks:
         apisix:
   networks:
     apisix:
       driver: bridge
   
   volumes:
     etcd_data:
       driver: local
   
   ```
   


-- 
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