-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.coolify.yml
More file actions
61 lines (54 loc) · 1.75 KB
/
docker-compose.coolify.yml
File metadata and controls
61 lines (54 loc) · 1.75 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# =============================================================================
# MTA-STS Server - Coolify/Standalone Deployment
# =============================================================================
#
# Usage: docker compose -f docker-compose.coolify.yml --env-file .env up -d
#
# Features:
# - Standalone deployment without reverse proxy
# - Managed by Coolify or direct docker compose
# - Health check monitoring
# - JSON logging with rotation
#
# Access:
# - Web UI: http://localhost:8080
# - Policy: http://localhost:8080/.well-known/mta-sts.txt
# - Health: http://localhost:8080/health
#
# =============================================================================
services:
### MTA-STS Server ###
# Serves MTA-STS policy files according to RFC 8461
mtasts-server:
# Option 1: Use pre-built image (recommended)
# image: ghcr.io/bauer-group/cs-mtasts/mtasts:latest
# Option 2: Build from source
build: ./src
restart: unless-stopped
container_name: ${STACK_NAME}_SERVER
hostname: ${SERVICE_HOSTNAME}
# Environment Configuration
environment:
# System
- TZ=${TIME_ZONE:-Etc/UTC}
# Service
- SERVICE_HOSTNAME=${SERVICE_HOSTNAME}
- DYNAMIC_HOSTNAME=${DYNAMIC_HOSTNAME:-false}
- GLOBAL_RATE_LIMIT=${GLOBAL_RATE_LIMIT:-600/minute}
# MTA-STS Policy
- STS_MODE=${STS_MODE:-enforce}
- STS_MAX_AGE=${STS_MAX_AGE:-86400}
- STS_MX_RECORDS=${STS_MX_RECORDS}
# Health Check
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8080/health"]
interval: 30s
timeout: 3s
start_period: 5s
retries: 3
# Logging Configuration
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"