version: "3" networks: web: external: true internal: external: false services: blog: image: wordpress:latest container_name: blog environment: WORDPRESS_DB_PASSWORD: dklfm904mg-uiojn labels: - "traefik.enable=true" - "traefik.http.routers.blog.entrypoints=http" - "traefik.http.routers.blog.rule=Host(`blog.wptest.isnet.uk`)" - "traefik.http.middlewares.blog.redirectscheme.scheme=https" - "traefik.http.routers.blog.middlewares=blog" - "traefik.http.routers.blog.entrypoints=https" - "traefik.http.routers.blog.rule=Host(`blog.wptest.isnet.uk`)" - "traefik.http.routers.blog.tls=true" - "traefik.http.routers.blog.tls.certresolver=http" - "traefik.http.services.blog.loadbalancer.server.port=80" - "traefik.http.routers.blog.service=blog" - "traefik.docker.network=web" networks: - internal - web depends_on: - mysql mysql: image: mysql:5.7 environment: MYSQL_ROOT_PASSWORD: dklfm904mg-uiojn networks: - internal labels: - traefik.enable=false