-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
143 lines (132 loc) · 2.84 KB
/
docker-compose.yml
File metadata and controls
143 lines (132 loc) · 2.84 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
services:
mysql:
image: mysql:8.0
container_name: mysql-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: strong_root_password
MYSQL_DATABASE: orderus_orders_db
MYSQL_USER: appuser
MYSQL_PASSWORD: app_password
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password
networks:
- mynet
mongodb:
image: mongo:6.0
container_name: mongo-db
restart: always
environment:
MONGO_INITDB_DATABASE: calendar
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
networks:
- mynet
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: php-myadmin
restart: always
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_USER: root
PMA_PASSWORD: strong_root_password
ports:
- "8020:80"
depends_on:
- mysql
networks:
- mynet
redis:
image: redis:7
container_name: redis
restart: always
ports:
- "6379:6379"
networks:
- mynet
orders:
build: ./orderus.orders
container_name: orders-service
env_file:
- ./orderus.orders/.env.dev
environment:
SERVICE_APP_PORT: 3000
DB_HOST: mysql
ports:
- "3000:3000"
depends_on:
- mysql
- redis
networks:
- mynet
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 5s
retries: 5
orders-dapr:
image: "daprio/daprd:latest"
container_name: orders-dapr
command: [
"./daprd",
"-app-id", "orders-service",
"-app-port", "3000",
"-dapr-http-port", "3500",
"-dapr-grpc-port", "50001",
"-resources-path", "/components",
"--log-level","debug"
]
volumes:
- ./orderus.orders/src/dapr/components:/components
depends_on:
- orders
networks:
- mynet
ports:
- "3500:3500"
- "50001:50001"
notifications:
build: ./orderus.notifications
container_name: orderus-notifications
env_file:
- ./orderus.notifications/.env.dev
environment:
SERVICE_APP_PORT: 3000
ports:
- "3001:3000"
depends_on:
- redis
- orders
networks:
- mynet
notifications-dapr:
image: "daprio/daprd:latest"
container_name: notifications-dapr
command: [
"./daprd",
"-app-id", "orderus-notifications",
"-app-port", "3001",
"-dapr-http-port", "3501",
"-dapr-grpc-port", "50002",
"-resources-path", "/components"
]
volumes:
- ./orderus.notifications/src/dapr/components:/components
depends_on:
- notifications
networks:
- mynet
ports:
- "3501:3501"
- "50002:50002"
volumes:
mysql-data:
mongodb_data:
networks:
mynet:
driver: bridge