forked from gkspranger/o11y-demo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
85 lines (78 loc) · 1.62 KB
/
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
services:
waf:
image: docker.io/library/haproxy:lts-alpine
volumes:
- ./waf:/usr/local/etc/haproxy:ro
ports:
- 8100:8080
- 8150:9090
depends_on:
web:
condition: service_started
web:
build:
context: ./web
dockerfile: Dockerfile
ports:
- 8200:80
depends_on:
tier1:
condition: service_started
tier1:
build:
context: ./tier1
dockerfile: Dockerfile
ports:
- 8300:8080
depends_on:
tier2:
condition: service_started
queue:
condition: service_healthy
tier2:
build:
context: ./tier2
dockerfile: Dockerfile
ports:
- 8400:8080
depends_on:
db:
condition: service_healthy
db:
image: docker.io/library/mysql:latest
volumes:
- ./db:/docker-entrypoint-initdb.d
ports:
- 8500:3306
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: test
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 10s
retries: 12
queue:
image: docker.io/library/rabbitmq:3-management
ports:
- 8600:15672
- 8650:5672
environment:
RABBITMQ_DEFAULT_USER: test
RABBITMQ_DEFAULT_PASS: test
healthcheck:
test: ["CMD", "rabbitmq-diagnostics" ,"-q", "ping"]
timeout: 10s
retries: 12
queue_consumer:
build:
context: ./cons
dockerfile: Dockerfile
ports:
- 8700:80
depends_on:
queue:
condition: service_healthy
db:
condition: service_healthy