-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
52 lines (49 loc) · 1.12 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
services:
mongodb:
build: ./.infra/local/
restart: unless-stopped
hostname: mongodb
mem_limit: 5g
ports:
- "127.0.0.1:27017:27017"
volumes:
- lba_mongodb_data:/data
healthcheck:
test: ["CMD", "mongosh", "--eval", '''db.runCommand("ping").ok''', "--quiet"]
interval: 10s
timeout: 5s
retries: 12
start_period: 10s
clamav:
image: clamav/clamav:stable
restart: unless-stopped
healthcheck:
test: ["CMD", "/usr/local/bin/clamdcheck.sh"]
interval: 60s
retries: 3
start_period: 6m
ports:
- 3310:3310
volumes:
- lba_clamav_data:/var/lib/clamav
- ./.infra/files/configs/clamav/clamd.conf:/etc/clamav/clamd.conf
smtp:
image: axllent/mailpit:v1.15
restart: unless-stopped
ports:
- 1025:1025
- 8025:8025
environment:
- MP_DATA_FILE=/data/mailpit.db
volumes:
- lba_smtp_data:/data
volumes:
lba_mongodb_data:
driver: local
name: lba_mongodb_data
lba_smtp_data:
driver: local
name: lba_smtp_data
lba_clamav_data:
driver: local
name: lba_clamav_data