-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
42 lines (41 loc) · 1012 Bytes
/
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
version: "3.9"
services:
rabbitmq:
image: rabbitmq:3.8.16-management
container_name: rabbitmq
hostname: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
- "15692:15692"
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
- RABBITMQ_DEFAULT_VHOST=/
db:
image: postgres:15
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: db
volumes:
- ./.db:/var/lib/postgresql/data
ports:
- "5432:5432"
java:
image: leothenardo/asapcard-java-consumer:latest
container_name: java
environment:
- DATABASE_URL=jdbc:postgresql://db:5432/db
- RABBITMQ_HOST=rabbitmq
restart: always
golang:
image: leothenardo/asapcard-golang-producer:latest
container_name: golang
volumes:
- ./input:/usr/src/app/input
- ./conciliation:/usr/src/app/conciliation
environment:
- RABBITMQ_HOST=rabbitmq
restart: always