-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (51 loc) · 973 Bytes
/
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
version: '3'
services:
mq:
image: rabbitmq:3.7-management
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:15672"]
interval: 30s
timeout: 10s
retries: 5
db:
image: postgres
ports:
- "5432:5432"
dbcreator:
image: postgres
command: |
psql --host=db --user=postgres -c 'create database rabbitmq2db_repo';
links:
- db
depends_on:
- db
ftpserver:
image: raphexion/ftp2rabbitmq
restart: on-failure
ports:
- "2121:2121"
environment:
- rabbitmq_hostname=mq
links:
- mq
depends_on:
- mq
storer:
image: raphexion/rabbitmq2db
restart: on-failure
ports:
- "4000:4000"
environment:
- rabbitmq_hostname=mq
- DB_USER=postgres
- DB_PASS=postgres
- DB_HOST=db
links:
- mq
- db
depends_on:
- mq
- db