1. Changes the build context of all services to the root level to be able to access the dependencies for each project. 2. Commented out the prepublish scripts, these steps are moved into the Dockerfile Did not change any script yet, need help to identify what scripts we need to change.
110 lines
2.3 KiB
YAML
110 lines
2.3 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
|
|
basket.api:
|
|
image: eshop/basket.api:${TAG:-latest}
|
|
build:
|
|
context: .
|
|
dockerfile: ./src/Services/Basket/Basket.API/Dockerfile
|
|
depends_on:
|
|
- basket.data
|
|
- identity.api
|
|
- rabbitmq
|
|
|
|
catalog.api:
|
|
image: eshop/catalog.api:${TAG:-latest}
|
|
build:
|
|
context: .
|
|
dockerfile: ./src/Services/Catalog/Catalog.API/Dockerfile
|
|
depends_on:
|
|
- sql.data
|
|
- rabbitmq
|
|
|
|
identity.api:
|
|
image: eshop/identity.api:${TAG:-latest}
|
|
build:
|
|
context: .
|
|
dockerfile: ./src/Services/Identity/Identity.API/Dockerfile
|
|
depends_on:
|
|
- sql.data
|
|
|
|
ordering.api:
|
|
image: eshop/ordering.api:${TAG:-latest}
|
|
build:
|
|
context: .
|
|
dockerfile: ./src/Services/Ordering/Ordering.API/Dockerfile
|
|
depends_on:
|
|
- sql.data
|
|
- rabbitmq
|
|
|
|
marketing.api:
|
|
image: eshop/marketing.api:${TAG:-latest}
|
|
build:
|
|
context: .
|
|
dockerfile: ./src/Services/Marketing/Marketing.API/Dockerfile
|
|
depends_on:
|
|
- sql.data
|
|
- nosql.data
|
|
- identity.api
|
|
- rabbitmq
|
|
|
|
webspa:
|
|
image: eshop/webspa:${TAG:-latest}
|
|
build:
|
|
context: .
|
|
dockerfile: ./src/Web/WebSPA/Dockerfile
|
|
depends_on:
|
|
- catalog.api
|
|
- ordering.api
|
|
- identity.api
|
|
- basket.api
|
|
- marketing.api
|
|
|
|
webmvc:
|
|
image: eshop/webmvc:${TAG:-latest}
|
|
build:
|
|
context: .
|
|
dockerfile: ./src/Web/WebMVC/Dockerfile
|
|
depends_on:
|
|
- catalog.api
|
|
- ordering.api
|
|
- identity.api
|
|
- basket.api
|
|
- marketing.api
|
|
|
|
webstatus:
|
|
image: eshop/webstatus:${TAG:-latest}
|
|
build:
|
|
context: .
|
|
dockerfile: ./src/Web/WebStatus/Dockerfile
|
|
|
|
payment.api:
|
|
image: eshop/payment.api:${TAG:-latest}
|
|
build:
|
|
context: .
|
|
dockerfile: ./src/Services/Payment/Payment.API/Dockerfile
|
|
depends_on:
|
|
- rabbitmq
|
|
|
|
locations.api:
|
|
image: eshop/locations.api:${TAG:-latest}
|
|
build:
|
|
context: .
|
|
dockerfile: ./src/Services/Location/Locations.API/Dockerfile
|
|
depends_on:
|
|
- nosql.data
|
|
- rabbitmq
|
|
|
|
sql.data:
|
|
image: microsoft/mssql-server-linux:2017-latest
|
|
|
|
nosql.data:
|
|
image: mongo
|
|
|
|
basket.data:
|
|
image: redis
|
|
|
|
rabbitmq:
|
|
image: rabbitmq:3-management
|