# See docker-compose.yml header for maksit-certs-ui-* container/image naming (no clash with maksit-vault-*).
networks:
  maksit-certs-ui-network:
    driver: bridge

services:
  reverseproxy:
    environment:
      ASPNETCORE_ENVIRONMENT: Development
      ASPNETCORE_HTTP_PORTS: "8080"
    ports:
      - "8080:8080"
    networks:
      - maksit-certs-ui-network
    depends_on:
      - client
      - server

  client:
    environment:
      ASPNETCORE_ENVIRONMENT: Development
    volumes:
      - ./MaksIT.WebUI:/app
    networks:
      - maksit-certs-ui-network

  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:
      - maksit-certs-ui-network
