-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
95 lines (94 loc) · 1.88 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: '3'
services:
#Event-store
eventstore:
image: ghcr.io/eventstore/eventstore:20.6.1-alpha.0.69-arm64v8
ports:
- '2113:2113'
- '1113:1113'
environment:
- EVENTSTORE_INSECURE=true
- EVENTSTORE_RUN_PROJECTIONS=None
- EVENTSTORE_START_STANDARD_PROJECTIONS=false
networks:
- eventstore
gateway:
container_name: gateway-service
build: ./gateway
ports:
- '4000:3000'
volumes:
- './gateway:/app'
- '/app/node_modules'
networks:
- account
- order
- product
#Account
postgres-account:
image: 'postgres:latest'
environment:
POSTGRES_PASSWORD: padd
POSTGRES_USER: uss
networks:
- account
account:
container_name: account-service
build: ./account
volumes:
- './account:/app'
- '/app/node_modules'
- './shared:/app/src/shared'
networks:
- eventstore
- account
depends_on:
- postgres-account
- eventstore
#Order
postgres-order:
image: 'postgres:latest'
environment:
POSTGRES_PASSWORD: padd
POSTGRES_USER: uss
networks:
- order
order:
container_name: order-service
build: ./order
volumes:
- './order:/app'
- '/app/node_modules'
- './shared:/app/src/shared'
networks:
- eventstore
- order
depends_on:
- postgres-order
- eventstore
#Product
postgres-product:
image: 'postgres:latest'
environment:
POSTGRES_PASSWORD: padd
POSTGRES_USER: uss
networks:
- product
product:
container_name: product-service
build: ./product
volumes:
- './product:/app'
- '/app/node_modules'
- './shared:/app/src/shared'
networks:
- eventstore
- product
depends_on:
- postgres-product
- eventstore
networks:
eventstore:
account:
order:
product: