-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test.yml
39 lines (36 loc) · 1.17 KB
/
docker-compose-test.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
version: '2.1'
services:
database:
image: "lozzikit-microservice-mail/database"
environment:
- MYSQL_DATABASE=lozzikit-mail
- MYSQL_ROOT_PASSWORD=root
ports:
- 3308:3306
healthcheck:
test: ["CMD", "mysql", "--user=root", "--password=root", "--execute=SHOW DATABASES;"]
interval: 10s
retries: 5
server:
image: lozzikit-microservice-mail/server
ports:
- 8080:8080
- 5005:5005
command: --io.lozzikit.smtp.milliseconds.before.sending=100 --io.lozzikit.smtp.address=cucumber
depends_on:
database:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-sSfk", "http://localhost:8080/api/mail/v1/health"]
interval: 10s
timeout: 10s
retries: 5
links:
- database:database.mail.microservice.lozzikit.io
cucumber:
image: lozzikit-microservice-mail/cucumber
depends_on:
server:
condition: service_healthy
links:
- server:server.mail.microservice.lozzikit.io