-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (51 loc) · 1.22 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
version: '3.8'
services:
customers:
build:
context: services/customers
dockerfile: Dockerfile
environment:
- DTM_COORDINATOR=http://dtm:36789/api/dtmsvr
- ORDERS_SERVICE_URL=http://orders:8080
- CUSTOMERS_SERVICE_URL=http://customers:8080
- MYSQL_DSN=saga:saga@tcp(mysql:3306)/saga?charset=utf8mb4&parseTime=True&loc=Local
ports:
- "8090:8080"
networks:
- backend
orders:
build:
context: services/orders
dockerfile: Dockerfile
environment:
- DTM_COORDINATOR=http://dtm:36789/api/dtmsvr
- ORDERS_SERVICE_URL=http://orders:8080
- CUSTOMERS_SERVICE_URL=http://customers:8080
- MYSQL_DSN=saga:saga@tcp(mysql:3306)/saga?charset=utf8mb4&parseTime=True&loc=Local
ports:
- "8091:8080"
networks:
- backend
dtm:
image: yedf/dtm
restart: always
ports:
- "36790:36790" # grpc
- "36789:36789" # ui
networks:
- backend
mysql:
image: mysql:8
restart: always
ports:
- "8092:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=saga
- MYSQL_USER=saga
- MYSQL_PASSWORD=saga
networks:
- backend
networks:
backend:
driver: bridge