text Wordpress堆栈与traefik #wordpress #docker #traefik

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Wordpress堆栈与traefik #wordpress #docker #traefik相关的知识,希望对你有一定的参考价值。

version: '3.1'

services:

  wordpress:
    image: wordpress
    restart: always
    networks:
      - traefik_traefik
    deploy:
      labels:
        - "traefik.port=80"
        - "traefik.enable=true"
        - "traefik.passHostHeader=true"
        - "traefik.docker.network=traefik_traefik"
        - "traefik.backend.loadbalancer.swarm=true"
        - "traefik.frontend.rule=Host:wordpress.mikenunezdevops.xyz"
    environment:
      WORDPRESS_DB_HOST: 138.197.100.123:3306
      WORDPRESS_DB_USER: root
      WORDPRESS_DB_PASSWORD: 79d9d35244f08705b4de60c6a3d524f6c6a0db7021f7d275
      WORDPRESS_DB_NAME: wordpress01
      
networks:
  traefik_traefik:
    external: true

以上是关于text Wordpress堆栈与traefik #wordpress #docker #traefik的主要内容,如果未能解决你的问题,请参考以下文章

text docker traefik prometheus命令

traefik代理背后的Gitlab“网关超时”

使用路径前缀规则时如何用 Traefik 重写路径?

新反向代理与负载均衡工具 traefik 安装配置部署详解

第三节Igress部署安装(traefik)

markdown 开源的反向代理与负载均衡工具Traefik