-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (62 loc) · 1.28 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
58
59
60
61
62
63
64
65
66
67
68
services:
events-manager:
# change to image if you pre built
build: ./events-manager
ports:
- 8080:8080
env_file:
- ./events-manager/.env
volumes:
- ./events-manager:/app
depends_on:
rabbit:
condition: service_healthy
notifier:
# change to image if you pre built
build: ./notifier
env_file:
- ./notifier/.env
volumes:
- ./notifier:/app
depends_on:
rabbit:
condition: service_healthy
postgres_db:
image: postgres
restart: always
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
- ./configs/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_PASSWORD: 1234
mongo:
image: mongo
ports:
- 27017:27017
volumes:
- mongo_data:/data/db
front:
build:
./front
volumes:
- ./front:/app
ports:
- 4200:4200
rabbit:
build: ./configs/rabbit
ports:
- "15672:15672"
- "5672:5672"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:15672"]
interval: 5s
timeout: 5s
retries: 5
environment:
hostname: 'rabbit'
RABBITMQ_ERLANG_COOKIE: 'secret cookie of julian'
volumes:
postgres_data:
mongo_data: