version: "3"

services:

  redis-master:
    image: registry.k8s.io/redis:e2e 
    ports:
      - "6379"

  redis-replica:
    image: registry.k8s.io/redis-slave:v2
    ports:
      - "6379"
    environment:
      - GET_HOSTS_FROM=dns

  frontend:
    image: gcr.io/google-samples/gb-frontend:v4
    ports:
      - "80:80"
    environment:
      - GET_HOSTS_FROM=dns
    labels:
      kompose.service.type: LoadBalancer
