-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
71 lines (64 loc) · 1.53 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
version: '2.14.0'
services:
social-media:
image: 'wso2/social-media:0.0.1'
ports:
- '9090:9090'
depends_on:
jaeger:
condition: service_started
sentiment-analysis:
condition: service_started
sts:
condition: service_started
mysql:
condition: service_healthy
network_mode: "host"
slack-message-sender:
image: 'wso2/slack-message-sender:0.0.1'
depends_on:
jaeger:
condition: service_started
nats:
condition: service_started
network_mode: "host"
sentiment-analysis:
image: 'wso2/sentiment-api-secured:0.0.1'
ports:
- '9098:9098'
depends_on:
- jaeger
network_mode: "host"
jaeger:
image: 'jaegertracing/opentelemetry-all-in-one'
ports:
- '13133:13133'
- '16686:16686'
- '55680:55680'
network_mode: "host"
sts:
image: 'wso2/sts-service:0.0.1'
ports:
- '9445:9445'
network_mode: "host"
nats:
image: nats:latest
ports:
- "4222:4222"
network_mode: "host"
mysql:
image: 'mysql:8-oracle'
ports:
- '3306:3306'
network_mode: "host"
environment:
- MYSQL_ROOT_PASSWORD=dummypassword
- MYSQL_DATABASE=social_media_database
- MYSQL_USER=social_media_user
- MYSQL_PASSWORD=dummypassword
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
volumes:
- "./db-setup/init.sql:/docker-entrypoint-initdb.d/1.sql"