首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >带有Traefik的Dockware

带有Traefik的Dockware
EN

Stack Overflow用户
提问于 2021-10-17 13:30:42
回答 1查看 63关注 0票数 0

我尝试通过traefik代理一个dockware容器。该错误是内部服务器错误(500)。

有必要更改域名吗?如果是,如何更改域名?

Docker compose for shopware

代码语言:javascript
复制
version: "3"

services:
  shopwaretest:
    image: dockware/play:latest
    container_name: shopwaretest
    restart: always
    volumes:
       - "db_shopwaretest:/var/lib/mysql"
       - "shopwaretest:/var/www/html"
       - ./hosts:/etc/hosts
    networks:
       - proxy
    environment:
       - XDEBUG_ENABLED=0
       - PHP_VERSION=8.0
    labels:
      - "traefik.enable=true"

      - "traefik.http.routers.shopwaretest-http.rule=Host(`example.com`)"
      - "traefik.http.routers.shopwaretest-http.entrypoints=http"
      - "traefik.http.routers.shopwaretest-http.service=shopwaretest-http-service"
      - "traefik.http.services.shopwaretest-http-service.loadbalancer.server.port=80"

      - "traefik.http.routers.shopwaretest-https.rule=Host(`example.com`)"
      - "traefik.http.routers.shopwaretest-https.entrypoints=https"
      - "traefik.http.routers.shopwaretest-https.service=shopwaretest-https-service"
      - "traefik.http.services.shopwaretest-https-service.loadbalancer.server.port=80"
      - "traefik.http.routers.shopwaretest-https.tls=true"

      - "traefik.http.routers.shopwaretest-http.middlewares=redirect@file"
      - "traefik.http.routers.shopwaretest-https.tls.certresolver=http"

volumes:
  db_shopwaretest:
    driver: local
  shopwaretest:
    driver: local

networks:
  proxy:
    external: true
EN

回答 1

Stack Overflow用户

发布于 2021-10-23 11:01:27

如果您收到内部服务器错误,请检查服务器日志。

您可以在sales_channel_domain表中手动更改域名。

问题可能是,SSL在traefik上终止,而Shopware无法检测到这一点-如果这就是问题所在,您可能需要将TRUESTED_PROXIES变量设置为traefik服务器/容器的IP。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69604801

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档