version: "3"
services:
  php:
    image: redratio/wp-redrat-v2:6.2.2
    restart: unless-stopped

    environment:
      WORDPRESS_DB_HOST: 79.172.210.85
      WORDPRESS_DB_USER: helloio
      WORDPRESS_DB_PASSWORD: 9RQByH8qTZfvXvSP9re72dM9
      WORDPRESS_DB_NAME: helloio
    volumes:
      - /data/webshop/helloio/www:/var/www/html
      - /data/plugin-api:/var/www/html/api
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.helloio.rule= Host(`helloio.redratshop.io`) || Host(`hello.io`)"
      - "traefik.http.routers.helloio.entrypoints=websecure"
      - "traefik.http.routers.helloio.tls=true"
      - "traefik.http.routers.helloio.tls.certresolver=myresolver"
    expose:
      - 443
      - 80
    networks:
      traefik:
networks:
  traefik:
    external: true