services:
  reverse-proxy:
    container_name: reverse-proxy
    ports:
      - "8080:8080"
    depends_on:
      - certs-ui-client
      - certs-ui-server
    networks:
      - maks-it

  certs-ui-client:
    container_name: certs-ui-client
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
      - LETSENCRYPT_SERVER=http://localhost:8080
    volumes:
      - ./MaksIT.WebUI:/app
    networks:
      - maks-it

  certs-ui-server:
    container_name: certs-ui-server
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
      - ASPNETCORE_HTTP_PORTS=5000
    volumes:
      - D:\Compose\MaksIT.CertsUI\acme:/acme
      - D:\Compose\MaksIT.CertsUI\cache:/cache
      - D:\Compose\MaksIT.CertsUI\data:/data
      - D:\Compose\MaksIT.CertsUI\tmp:/tmp
      - D:\Compose\MaksIT.CertsUI\configMap\appsettings.json:/configMap/appsettings.json:ro
      - D:\Compose\MaksIT.CertsUI\secrets\appsecrets.json:/secrets/appsecrets.json:ro
    networks:
      - maks-it

networks:
  maks-it:
    driver: bridge