-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
53 lines (53 loc) · 1.55 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3'
services:
sql-server:
container_name: sql-server-db
image: mcr.microsoft.com/mssql/server:2019-latest
ports:
- "1433:1433"
environment:
SA_PASSWORD: "Great balls 0f fire!"
ACCEPT_EULA: "Y"
productservice:
environment:
- OPSConnectionString=Data Source=sql-server;Initial Catalog=OctoPetShop; User ID=sa; Password=Great balls 0f fire!
build:
dockerfile: dockerfile
context: ./OctopusSamples.OctoPetshop.Productservice
ports:
- '5011:5011'
- '5014:5014'
depends_on:
- "database"
octopetshop:
environment:
- ProductServiceBaseUrl=http://productservice:5011/
- ShoppingCartServiceBaseUrl=http:/shoppingcartservice:5012
build:
dockerfile: dockerfile
context: ./OctopusSamples.OctoPetShop.Web
ports:
- '5000:5000'
- '5001:5001'
depends_on:
- "shoppingcartservice"
- "productservice"
shoppingcartservice:
environment:
- OPSConnectionString=Data Source=sql-server;Initial Catalog=OctoPetShop; User ID=sa; Password=Great balls 0f fire!
build:
dockerfile: dockerfile
context: ./OctopusSamples.OctoPetShop.ShoppingCartService
ports:
- '5012:5012'
- '5013:5013'
depends_on:
- "database"
database:
environment:
- DbUpConnectionString=Data Source=sql-server;Initial Catalog=OctoPetShop; User ID=sa; Password=Great balls 0f fire!
build:
dockerfile: dockerfile
context: ./OctopusSamples.OctoPetShop.Database
depends_on:
- "sql-server"