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: helloee2
      WORDPRESS_DB_PASSWORD: e5CR6XA9AJnVatgEmxE6bPVM
      WORDPRESS_DB_NAME: helloee2
    volumes:
      - /data/webshop/helloee2/www:/var/www/html
      - /data/plugin-api:/var/www/html/api
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.helloee2.rule= Host(`helloee2.redratshop.io`) || Host(`helloeeertftftzu.io`)"
      - "traefik.http.routers.helloee2.entrypoints=websecure"
      - "traefik.http.routers.helloee2.tls=true"
      - "traefik.http.routers.helloee2.tls.certresolver=myresolver"
    expose:
      - 443
      - 80
    networks:
      traefik:
networks:
  traefik:
    external: true