-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (57 loc) · 1.36 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
services:
db:
image: mysql:5.7
restart: always
environment:
- MYSQL_DATABASE
# So you don't have to use root, but you can if you like
- MYSQL_USER
# You can use whatever password you like
- MYSQL_PASSWORD
# Password for root access
- MYSQL_ROOT_PASSWORD
ports:
# <Port exposed> : <MySQL Port running inside container>
- "3306:3306"
expose:
# Opens port 3306 on the container
- "3306"
# Where our data will be persisted
volumes:
- my-db:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-p\"${MYSQL_PASSWORD}\""]
timeout: 5s
retries: 10
rabbitmq:
image: rabbitmq:3.8.19-management
ports:
- "5672:5672" # RabbitMQ default port for AMQP
- "15672:15672" # RabbitMQ Management UI
volumes:
- rabbitmq_data:/var/lib/rabbitmq
ts-server:
build:
context: ts-server
ports:
- 8080:8080
depends_on:
db:
condition: service_healthy
environment:
- RABBIT_HOST=rabbitmq
- MYSQL_HOST=db
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_DATABASE
ts-ui-dashboard:
build: ts-ui-dashboard
restart: always
ports:
- 3000:8080
# Names our volume
volumes:
my-db:
driver: local
rabbitmq_data:
driver: local