-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.app.yaml
More file actions
46 lines (42 loc) · 1.03 KB
/
Copy pathcompose.app.yaml
File metadata and controls
46 lines (42 loc) · 1.03 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
45
46
name: mailapi-app
x-mailapi-common: &mailapi-common
image: ${MAILAPI_IMAGE:-ghcr.io/tesgth032/mailapi:latest}
restart: unless-stopped
environment:
MAILAPI_CONFIG: /etc/mailapi/config.yaml
volumes:
- ${MAILAPI_CONFIG_FILE:-./config.yaml}:/etc/mailapi/config.yaml:ro
services:
api:
<<: *mailapi-common
command: ["api"]
ports:
- "${MAILAPI_API_BIND:-127.0.0.1}:8080:8080"
healthcheck:
test: ["CMD", "mailapi-healthcheck", "api"]
interval: 30s
timeout: 5s
retries: 5
start_period: 20s
smtp:
<<: *mailapi-common
command: ["smtp"]
cap_add:
- NET_BIND_SERVICE
ports:
- "${MAILAPI_SMTP_BIND:-0.0.0.0}:25:25"
healthcheck:
test: ["CMD", "mailapi-healthcheck", "smtp"]
interval: 30s
timeout: 5s
retries: 5
start_period: 20s
worker:
<<: *mailapi-common
command: ["worker"]
healthcheck:
test: ["CMD", "mailapi-healthcheck", "worker"]
interval: 30s
timeout: 5s
retries: 5
start_period: 20s