1Panel icon indicating copy to clipboard operation
1Panel copied to clipboard

[Feature] Make extra_hosts configurable

Open iygwei opened this issue 6 months ago • 3 comments

1Panel Version

2.0.10

Please describe your needs or suggestions for improvements

可以考虑把extra_hosts的域名也做成

Image

Please describe the solution you suggest

No response

Additional Information

No response

iygwei avatar Sep 03 '25 07:09 iygwei

感谢反馈。上述需求是希望支持类似下面这种 extra_hosts 配置吗?

services:
  app:
    image: nginx:latest
    ports:
      - "8080:80"
    environment:
      - APP_ENV=prod
    extra_hosts:
      - "test.local:192.168.1.100"
      - "db.local:172.16.1.50"

wanghe-fit2cloud avatar Sep 03 '25 09:09 wanghe-fit2cloud

感谢反馈。上述需求是希望支持类似下面这种 extra_hosts 配置吗?

services: app: image: nginx:latest ports: - "8080:80" environment: - APP_ENV=prod extra_hosts: - "test.local:192.168.1.100" - "db.local:172.16.1.50"

对就是这样

iygwei avatar Sep 03 '25 09:09 iygwei

感谢反馈。上述需求是希望支持类似下面这种 extra_hosts 配置吗? services: app: image: nginx:latest ports:

  • "8080:80" environment:
  • APP_ENV=prod extra_hosts:
  • "test.local:192.168.1.100"
  • "db.local:172.16.1.50"

对就是这样

好的,我们后续版本考虑下这个需求。

wanghe-fit2cloud avatar Sep 04 '25 09:09 wanghe-fit2cloud

v2.0.13 版本已发布。

wanghe-fit2cloud avatar Nov 20 '25 03:11 wanghe-fit2cloud