-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (78 loc) · 2.36 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3'
networks:
net:
driver: bridge
services:
postgres:
image: "postgres"
environment:
- POSTGRES_PASSWORD=123456
networks:
- net
ports:
- "5433:5432"
rabbitmq:
image: "rabbitmq:3-management"
networks:
- net
ports:
- "5673:5672"
- "8081:15672"
ui:
depends_on:
- "products"
- "checkout"
- "handler"
build: ./sw-ui/
networks:
- net
ports:
- "8444:80"
products:
depends_on:
- "postgres"
build: ./sw-products/
environment:
- SW_ConnectionStrings__ProductDbContext=User ID=postgres;Password=123456;Server=sw_postgres_1;Port=5432;Database=sw_products;Pooling=true;
networks:
- net
ports:
- "8433:80"
checkout:
depends_on:
- "postgres"
- "rabbitmq"
build: ./sw-checkout/
environment:
- SW_EventStore__ConnectionString=PORT=5432;HOST=sw_postgres_1;TIMEOUT=15;POOLING=True;MINPOOLSIZE=1;MAXPOOLSIZE=100;COMMANDTIMEOUT=20;DATABASE=sw_checkout;PASSWORD=123456;USER ID=postgres;
- SW_ReadStorage__ConnectionString=HOST=sw_postgres_1;Port=5432;Database=sw_checkout;User Id=postgres;Password=123456;
- SW_ReadStorageSyncQueue__Host=sw_rabbitmq_1
- SW_ReadStorageSyncQueue__QueueName=read-storage-sync
- SW_ReadStorageSyncQueue__Route=read-storage-sync
- SW_ProcessOrderQueue__Host=sw_rabbitmq_1
- SW_ProcessOrderQueue__QueueName=process-order
- SW_ProcessOrderQueue__Route=process-order
networks:
- net
ports:
- "8434:80"
handler:
depends_on:
- "postgres"
- "rabbitmq"
build:
context: ./sw-checkout/
dockerfile: DockerfileHandler
stdin_open: true
tty: true
environment:
- SW_EventStore__ConnectionString=PORT=5432;HOST=sw_postgres_1;TIMEOUT=15;POOLING=True;MINPOOLSIZE=1;MAXPOOLSIZE=100;COMMANDTIMEOUT=20;DATABASE=sw_checkout;PASSWORD=123456;USER ID=postgres;
- SW_ReadStorage__ConnectionString=HOST=sw_postgres_1;Port=5432;Database=sw_checkout;User Id=postgres;Password=123456;
- SW_ReadStorageSyncQueue__Host=sw_rabbitmq_1
- SW_ReadStorageSyncQueue__QueueName=read-storage-sync
- SW_ReadStorageSyncQueue__Route=read-storage-sync
- SW_ProcessOrderQueue__Host=sw_rabbitmq_1
- SW_ProcessOrderQueue__QueueName=process-order
- SW_ProcessOrderQueue__Route=process-order
networks:
- net