Back

Microservicios – Java Spring Boot + .Net Core + Blazor + H2 + SQLite + Selenium + Docker

Proyecto de Microservicios de Servicios Web en el Máster de IW con Java Spring Boot + .Net Core + Blazor + H2 + SQLite + Selenium + Docker. Prueba de funcionamiento con Docker compose.

version: '3.4'
services:
  data:
    image: di.smdev.host/pgg_data:1.0.4
    expose:
        - 9090
    volumes:
      - users_data:/app/data

  auth:
    image: di.smdev.host/pgg_auth:1.0.5 
    expose:
        - 9093
    environment: 
      - WebSettings__DataServiceURL=http://data:9090/DataServices.svc 
      - ASPNETCORE_DATA_SERVICE_URL=http://data:9090/DataServices.svc 
    depends_on:
     - data

  app:
    image: di.smdev.host/pgg_app:1.0.5
    expose:
        - 9091 
    depends_on:
     - data
     - auth 
    environment: 
      - WebSettings__DataServiceURL=http://data:9090/DataServices.svc
      - WebSettings__AuthServiceURL=http://auth:9093/AuthServices.svc
      - ASPNETCORE_DATA_SERVICE_URL=http://data:9090/DataServices.svc
      - ASPNETCORE_AUTH_SERVICE_URL=http://auth:9093/AuthServices.svc
      - ASPNETCORE_EXPENSE_SERVICE_URL=http://expense:8080/ws.pgg.rest.transactions 
      - ASPNETCORE_OFFERS_SERVICE_URL=http://external:8080/api/v1

  web:
    image: di.smdev.host/pgg_web:1.0.6
    expose:
        - 80 
    ports:
    - published: 82
      target: 80 
    depends_on:
     - app
     - auth 
    environment: 
      - WebSettings__AppServiceURL=http://app:9091/ApplicationServices.svc
      - WebSettings__AuthServiceURL=http://auth:9093/AuthServices.svc
      - ASPNETCORE_APP_SERVICE_URL=http://app:9091/ApplicationServices.svc
      - ASPNETCORE_AUTH_SERVICE_URL=http://auth:9093/AuthServices.svc 
      - ASPNETCORE_EXPENSE_SERVICE_URL=http://app:9091/UserExpenseManagerServices.svc
      - ASPNETCORE_OFFERS_SERVICE_URL=http://app:9091/SupermarketOffertServices.svc
 
  expense: 
    image: di.smdev.host/pgg_expense:1.0.3 
    expose:
    - 8080 
    environment:
        #- SPRING_DATASOURCE_URL=jdbc:h2:file:./data/db12
        #- SPRING_DATASOURCE_USERNAME=sa
        #- SPRING_DATASOURCE_PASSWORD=test
        - SERVER_BASE-URL=http://expense:8080/ws.pgg.rest.transactions
    volumes:
      - h2_data:/usr/local/tomcat/data


  external: 
    image: di.smdev.host/pgg_external:latest
    expose:
    - 8080 
    volumes:
      - external_cache_vol:/opt/external/data
    environment:
      APP_LINKS_CARREFOUR_LIMIT: 3
      APP_LINKS_MERCADONA_LIMIT: 10
      APP_SELENIUMHOST: "http://URL_WITH_SELENIUM:4444/wd/hub" 


volumes:
  h2_data:
  external_cache_vol:
  users_data:

Leave a Reply

Your email address will not be published. Required fields are marked *