-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
59 lines (59 loc) · 1.62 KB
/
docker-compose.yaml
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
services:
proposal-app:
image: proposal-app
build:
context: .
dockerfile: Dockerfile
ports:
- '8080:8080'
environment:
- 'SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/proposta-app'
- 'SPRING_DATASOURCE_USERNAME=myuser'
- 'SPRING_DATASOURCE_PASSWORD=secret'
- 'SPRING_RABBITMQ_HOST=rabbit-mq'
- 'SPRING_RABBITMQ_PORT=5672'
- 'SPRING_RABBITMQ_USERNAME=guest'
- 'SPRING_RABBITMQ_PASSWORD=guest'
depends_on:
rabbit-mq:
condition: service_healthy
notification-app:
image: leonardomeireles55/notification-app:latest
environment:
- 'SPRING_RABBITMQ_HOST=rabbit-mq'
- 'SPRING_RABBITMQ_PORT=5672'
- 'SPRING_RABBITMQ_USERNAME=guest'
- 'SPRING_RABBITMQ_PASSWORD=guest'
depends_on:
rabbit-mq:
condition: service_healthy
credit-analysis-app:
image: leonardomeireles55/credit-analysis-app:latest
environment:
- 'SPRING_RABBITMQ_HOST=rabbit-mq'
- 'SPRING_RABBITMQ_PORT=5672'
- 'SPRING_RABBITMQ_USERNAME=guest'
- 'SPRING_RABBITMQ_PASSWORD=guest'
depends_on:
rabbit-mq:
condition: service_healthy
postgres:
image: 'postgres:latest'
environment:
- 'POSTGRES_DB=proposta-app'
- 'POSTGRES_PASSWORD=secret'
- 'POSTGRES_USER=myuser'
ports:
- '5432:5432'
# volumes:
# - ./db.sql:/docker-entrypoint-initdb.d/db.sql
rabbit-mq:
image: rabbitmq:3-management
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 5s
timeout: 5s
retries: 3
ports:
- '5672:5672'
- '15672:15672'