-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
51 lines (46 loc) · 1023 Bytes
/
docker-compose.yaml
File metadata and controls
51 lines (46 loc) · 1023 Bytes
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
version: "3"
services:
rabbitmq:
image: rabbitmq:3.6-management-alpine
ports:
- 5672:5672
- 15672:15672
volumes:
- ./rabbit/rabbitmq.config:/etc/rabbitmq/rabbitmq.config:ro
- ./rabbit/definitions.json:/etc/rabbitmq/definitions.json:ro
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 30s
timeout: 5s
retries: 5
networks:
- serviceNet
mailpit:
image: axllent/mailpit
restart: always
volumes:
- ./data:/data
ports:
- 8025:8025
- 1025:1025
environment:
MP_MAX_MESSAGES: 5000
MP_DATA_FILE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
server:
env_file:
.env
environment:
RABBITMQ.HOST: rabbitmq
build:
context: ./
dockerfile: ./Dockerfile
depends_on:
rabbitmq:
condition: "service_healthy"
networks:
- serviceNet
networks:
serviceNet:
driver: bridge