Browse Source

New docker compose files

pull/223/head
Eduard Tomas 7 years ago
parent
commit
9d42f6a3b7
3 changed files with 77 additions and 37 deletions
  1. +0
    -37
      docker-compose.build.yml
  2. +56
    -0
      docker-compose.nobuild.yml
  3. +21
    -0
      docker-compose.yml

+ 0
- 37
docker-compose.build.yml View File

@ -1,37 +0,0 @@
version: '2'
services:
basket.api:
build:
context: ./src/Services/Basket/Basket.API
dockerfile: Dockerfile
catalog.api:
build:
context: ./src/Services/Catalog/Catalog.API
dockerfile: Dockerfile
identity.api:
build:
context: ./src/Services/Identity/Identity.API
dockerfile: Dockerfile
ordering.api:
build:
context: ./src/Services/Ordering/Ordering.API
dockerfile: Dockerfile
webspa:
build:
context: ./src/Web/WebSPA
dockerfile: Dockerfile
webmvc:
build:
context: ./src/Web/WebMVC
dockerfile: Dockerfile
webstatus:
build:
context: ./src/Web/WebStatus
dockerfile: Dockerfile

+ 56
- 0
docker-compose.nobuild.yml View File

@ -0,0 +1,56 @@
version: '2'
services:
basket.api:
image: eshop/basket.api
depends_on:
- basket.data
- identity.api
- rabbitmq
catalog.api:
image: eshop/catalog.api
depends_on:
- sql.data
- rabbitmq
identity.api:
image: eshop/identity.api
depends_on:
- sql.data
ordering.api:
image: eshop/ordering.api
depends_on:
- sql.data
webspa:
image: eshop/webspa
depends_on:
- identity.api
- basket.api
webmvc:
image: eshop/webmvc
depends_on:
- catalog.api
- ordering.api
- identity.api
- basket.api
sql.data:
image: microsoft/mssql-server-linux
basket.data:
image: redis
ports:
- "6379:6379"
rabbitmq:
image: rabbitmq
ports:
- "5672:5672"
webstatus:
image: eshop/webstatus

+ 21
- 0
docker-compose.yml View File

@ -3,6 +3,9 @@ version: '2'
services:
basket.api:
image: eshop/basket.api
build:
context: ./src/Services/Basket/Basket.API
dockerfile: Dockerfile
depends_on:
- basket.data
- identity.api
@ -10,28 +13,43 @@ services:
catalog.api:
image: eshop/catalog.api
build:
context: ./src/Services/Catalog/Catalog.API
dockerfile: Dockerfile
depends_on:
- sql.data
- rabbitmq
identity.api:
image: eshop/identity.api
build:
context: ./src/Services/Identity/Identity.API
dockerfile: Dockerfile
depends_on:
- sql.data
ordering.api:
image: eshop/ordering.api
build:
context: ./src/Services/Ordering/Ordering.API
dockerfile: Dockerfile
depends_on:
- sql.data
webspa:
image: eshop/webspa
build:
context: ./src/Web/WebSPA
dockerfile: Dockerfile
depends_on:
- identity.api
- basket.api
webmvc:
image: eshop/webmvc
build:
context: ./src/Web/WebMVC
dockerfile: Dockerfile
depends_on:
- catalog.api
- ordering.api
@ -53,4 +71,7 @@ services:
webstatus:
image: eshop/webstatus
build:
context: ./src/Web/WebStatus
dockerfile: Dockerfile

Loading…
Cancel
Save