-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (58 loc) · 1.52 KB
/
docker-compose.yml
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
54
55
56
57
58
version: "3.6"
services:
rabbitmq:
image: masstransit/rabbitmq:latest
ports:
- "5672:5672"
- "15672:15672"
db:
image: "mcr.microsoft.com/mssql/server:2019-latest"
container_name: db
hostname: db
environment:
- "SA_PASSWORD=Password12!"
- "ACCEPT_EULA=y"
ports:
- 1433:1433
createdb:
image: createdb
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__Default=Server=db;Database=Registration;User=sa;Password=Password12!;
build:
context: ./src
dockerfile: Dockerfile.createdb
depends_on:
- db
producer:
image: producer
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__Default=Server=db;Database=Registration;User=sa;Password=Password12!;
build:
context: ./src
dockerfile: Dockerfile.producer
depends_on:
- createdb
- rabbitmq
consumer:
image: consumer
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__Default=Server=db;Database=Registration;User=sa;Password=Password12!;
build:
context: ./src
dockerfile: Dockerfile.consumer
depends_on:
- createdb
- rabbitmq
sweeper:
image: sweeper
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__Default=Server=db;Database=Registration;User=sa;Password=Password12!;
build:
context: ./src
dockerfile: Dockerfile.sweeper
depends_on:
- producer