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

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