-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
58 lines (53 loc) · 1.28 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
version: "1.0.0"
name: multi-vendor-api
services:
server-api:
container_name: multi-vendor-api
build:
context: .
dockerfile: Dockerfile
ports:
- 8080:8080
volumes:
- ./app
depends_on:
- postgres
- mail-dev
- rabbitmq
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/multi_vendor
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=password
- SPRING_RABBITMQ_HOST=rabbitmq
- SPRING_RABBITMQ_PORT=5672
- SPRING_RABBITMQ_USERNAME=guest
- SPRING_RABBITMQ_PASSWORD=guest
postgres:
image: postgres
environment:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_DB: multi_vendor
ports:
- 5433:5432
mail-dev:
image: maildev/maildev
container_name: multi-vendor-maildev
ports:
- 1080:1080
- 1025:1025
rabbitmq:
image: rabbitmq:3.11.3-management
hostname: rabbitmq
restart: on-failure
environment:
RABBIT_DEFAULT_USER: "guest"
RABBIT_DEFAULT_PASS: "guest"
RABBIT_DEFAULT_VHOST: "/"
ports:
- "5672:5672"
- "15672:15672"
container_name: multi-vendor-rabbitmq
volumes:
- ./rabbimq-data:/var/lib/data
- ./rabbimq-data/logs:/var/log/data