-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yaml
57 lines (55 loc) · 1.36 KB
/
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: '3.8'
services:
mail-service:
container_name: mail-service
image: docker.io/metabrainz/mb-mail-service
build:
context: .
environment:
- APP_SMTP_PORT=1025
- APP_SMTP_HOST=smtp-relay
depends_on:
- smtp-relay
ports:
- 3000:3000
restart: unless-stopped
smtp-relay:
# This would be an actual SMTP relay in production
image: axllent/mailpit
container_name: smtp-relay
restart: unless-stopped
# volumes:
# - ./data:/data
ports:
- 8025:8025
- 1025:1025
expose:
- "8025"
environment:
MP_MAX_MESSAGES: 5000
# MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
# Monitoring
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- "9091:9090"
command: --config.file=/etc/prometheus/prometheus.yaml
volumes:
- ./prometheus.yaml:/etc/prometheus/prometheus.yaml
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: always
ports:
- '3050:3000'
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
volumes:
- grafana-storage:/var/lib/grafana
- ./grafana:/etc/grafana/provisioning
volumes:
grafana-storage: {}