-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (52 loc) · 1.13 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
version: '3'
services:
app:
build: .
restart: on-failure
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/postgres
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: postgres
SPRING_RABBITMQ_HOST: rabbitmq
ports:
- "8080:8080"
depends_on:
- db
- rabbitmq
- elasticsearch
networks:
- search-engine
db:
image: postgres:13.3-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- db_data:/var/lib/postgresql/data
networks:
- search-engine
rabbitmq:
image: rabbitmq:3.9.5-alpine
hostname: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_PASS: root
ports:
- "15672:15672"
- "5672:5672"
networks:
- search-engine
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.2
ports:
- 9200:9200
environment:
- discovery.type=single-node
networks:
- search-engine
volumes:
db_data:
networks:
search-engine:
driver: bridge