-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 853 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (35 loc) · 853 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
services:
mongo:
image: mongo:7
container_name: pmd-mongo
restart: unless-stopped
ports:
- "${PMD_MONGO_PORT:-27017}:27017"
volumes:
- pmd_mongo_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 10
networks:
- pmd-net
mailhog:
image: mailhog/mailhog:latest
container_name: pmd-mailhog
restart: unless-stopped
ports:
- "${PMD_SMTP_PORT:-1025}:1025" # SMTP
- "${PMD_MAILHOG_UI_PORT:-8025}:8025" # Web UI
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8025 >/dev/null 2>&1 || exit 1"]
interval: 10s
timeout: 5s
retries: 10
networks:
- pmd-net
volumes:
pmd_mongo_data:
networks:
pmd-net:
driver: bridge