From b600d092be12209ef9bade145eb05dc117980f86 Mon Sep 17 00:00:00 2001 From: Galip Tolga Erdem Date: Thu, 24 Mar 2022 19:18:48 +0300 Subject: [PATCH] Added Identity and Catalog services --- etc/docker/docker-compose.yml | 69 +++++++++++++++++++++++++++++++++-- 1 file changed, 66 insertions(+), 3 deletions(-) diff --git a/etc/docker/docker-compose.yml b/etc/docker/docker-compose.yml index 6b35d923..f559a40c 100644 --- a/etc/docker/docker-compose.yml +++ b/etc/docker/docker-compose.yml @@ -8,13 +8,12 @@ services: context: ../../ dockerfile: services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host/Dockerfile environment: - - ASPNETCORE_ENVIRONMENT=Development - - ASPNETCORE_URLS=https://+:443;http://+:80 + - ASPNETCORE_ENVIRONMENT=Staging + - ASPNETCORE_URLS=https://+:443;http://+:80; - Kestrel__Certificates__Default__Path=/root/certificate/localhost.pfx - Kestrel__Certificates__Default__Password=8b6039b6-c67a-448b-977b-0ce6d3fcfd49 - Redis__Configuration=redis - RabbitMQ__Connections__Default__HostName=rabbitmq - - RabbitMQ__Connections__Default__Port=5672 - ConnectionStrings__AdministrationService=User ID=postgres;Password=myPassw0rd;Host=postgres-db;Port=5432;Database=EShopOnAbp_Administration;Pooling=false; ports: - "44353:443" @@ -30,6 +29,70 @@ services: - eshoponabp-network volumes: - ../dev-cert:/root/certificate + + identity-service: + image: eshoponabp/service-identity:latest + container_name: identity-service-container + build: + context: ../../ + dockerfile: services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/Dockerfile + environment: + - ASPNETCORE_ENVIRONMENT=Staging + - ASPNETCORE_URLS=https://+:443;http://+:80 + - Kestrel__Certificates__Default__Path=/root/certificate/localhost.pfx + - Kestrel__Certificates__Default__Password=8b6039b6-c67a-448b-977b-0ce6d3fcfd49 + - Redis__Configuration=redis + - RabbitMQ__Connections__Default__HostName=rabbitmq + - ConnectionStrings__IdentityService=User ID=postgres;Password=myPassw0rd;Host=postgres-db;Port=5432;Database=EShopOnAbp_Identity;Pooling=false; + - ConnectionStrings__AdministrationService=User ID=postgres;Password=myPassw0rd;Host=postgres-db;Port=5432;Database=EShopOnAbp_Administration;Pooling=false; + ports: + - "44351:443" + depends_on: + redis: + condition: service_healthy + postgres-db: + condition: service_healthy + rabbitmq: + condition: service_healthy + restart: on-failure + networks: + - eshoponabp-network + volumes: + - ../dev-cert:/root/certificate + + catalog-service: + image: eshoponabp/service-catalog:latest + container_name: catalog-service-container + build: + context: ../../ + dockerfile: services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/Dockerfile + environment: + - ASPNETCORE_ENVIRONMENT=Staging + - ASPNETCORE_URLS=https://+:443;http://+:81; + - Kestrel__Certificates__Default__Path=/root/certificate/localhost.pfx + - Kestrel__Certificates__Default__Password=8b6039b6-c67a-448b-977b-0ce6d3fcfd49 + - Kestrel__EndPoints__Http__Url=https://docker.host.internal:44354 + - Kestrel__EndPoints__gRPC__Url=http://docker.host.internal:81 + - Redis__Configuration=redis + - RabbitMQ__Connections__Default__HostName=rabbitmq + - ConnectionStrings__CatalogService=mongodb://mongodb/EShopOnAbp_Catalog + - ConnectionStrings__AdministrationService=User ID=postgres;Password=myPassw0rd;Host=postgres-db;Port=5432;Database=EShopOnAbp_Administration;Pooling=false; + ports: + - "44354:443" + - "81:81" + depends_on: + redis: + condition: service_healthy + mongodb: + condition: service_healthy + rabbitmq: + condition: service_healthy + restart: on-failure + networks: + - eshoponabp-network + volumes: + - ../dev-cert:/root/certificate + networks: eshoponabp-network: