-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.24 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.24 KB
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
# docker-compose.yml
# Test infrastructure only — not used in production.
# Image: gmitirol/minimal-imap:v1 (Alpine + Dovecot, 30.7 MB)
#
# Usage:
# docker compose up — start both servers and seed source
# docker compose up imap-source imap-target — servers only, no seeding
# npm run imap:clear — wipe all messages from imap-target (reset between runs)
#
# imap-source localhost:143 testuser / testpass (pre-seeded with test emails)
# imap-target localhost:144 testuser / testpass (empty, use as restore destination)
services:
imap-source:
image: gmitirol/minimal-imap:v1
ports:
- "143:143"
environment:
IMAP_USERS: "testuser:testpass"
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 143 || exit 1"]
interval: 2s
timeout: 5s
retries: 15
start_period: 3s
imap-target:
image: gmitirol/minimal-imap:v1
ports:
- "144:143"
environment:
IMAP_USERS: "testuser:testpass"
mail-seeder:
build:
context: .docker/imap-seeder
environment:
IMAP_HOST: imap-source
IMAP_PORT: "143"
IMAP_USER: testuser
IMAP_PASS: testpass
depends_on:
imap-source:
condition: service_healthy
restart: "no"