问题描述
我一直在努力使用docker-compose pull
和docker-compose up -d
更新容器。我有一个特定的容器(正在运行NextCloud),该容器将启动,但由于日志包含以下内容,所以不允许我通过浏览器访问它:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name,using 172.23.0.7. Set the 'ServerName' directive globally to suppress this message
现在,我使用traefik作为反向代理来提供安全传输(https),并且在容器定义的“标签”部分中使用traefik设置了主机名:
nextcloud:
image: nextcloud:20.0.1-apache
restart: always
networks:
- internal
- proxy
ports:mysite
- 8181:80
links:
- nextcloud_db
volumes:
- Nextcloud:/var/www/html
labels:mysite
- traefik.enable=true
- traefik.backend=nextcloud
- traefik.docker.network=proxy
- traefik.http.frontend.rule=Host:nextcloud.mysite.net
# - traefik.http.protocol=https
- traefik.http.port=80
,直到现在为止,它一直运行良好,而升级时却没有。如何以NextCloud容器能够理解的方式设置主机名?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)