init
This commit is contained in:
89
docker-compose.yml
Normal file
89
docker-compose.yml
Normal file
@@ -0,0 +1,89 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# Worker für andreasknuth.de
|
||||
worker-andreasknuth:
|
||||
build: .
|
||||
container_name: worker-andreasknuth-de
|
||||
restart: unless-stopped
|
||||
network_mode: host # Zugriff auf lokales Netzwerk für Postfix
|
||||
environment:
|
||||
# AWS Credentials
|
||||
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
|
||||
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
|
||||
- AWS_REGION=eu-central-1
|
||||
|
||||
# Worker Identity
|
||||
- WORKER_NAME=worker-andreasknuth
|
||||
- WORKER_DOMAIN=andreasknuth.de
|
||||
|
||||
# SQS Queue (domain-spezifisch!)
|
||||
- SQS_QUEUE_URL=https://sqs.eu-central-1.amazonaws.com/123456789/andreasknuth-de-queue
|
||||
|
||||
# Worker Settings
|
||||
- POLL_INTERVAL=20
|
||||
- MAX_MESSAGES=10
|
||||
- VISIBILITY_TIMEOUT=300
|
||||
|
||||
# SMTP Configuration
|
||||
- SMTP_HOST=192.168.1.10
|
||||
- SMTP_PORT=25
|
||||
- SMTP_USE_TLS=false
|
||||
# Optional: SMTP Auth
|
||||
# - SMTP_USER=username
|
||||
# - SMTP_PASS=password
|
||||
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "5"
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "pgrep", "-f", "worker.py"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
|
||||
# Worker für bizmatch.net (auf demselben Server!)
|
||||
worker-bizmatch:
|
||||
build: .
|
||||
container_name: worker-bizmatch-net
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
environment:
|
||||
# AWS Credentials (gleich wie oben)
|
||||
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
|
||||
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
|
||||
- AWS_REGION=eu-central-1
|
||||
|
||||
# Worker Identity (unterschiedlich!)
|
||||
- WORKER_NAME=worker-bizmatch
|
||||
- WORKER_DOMAIN=bizmatch.net
|
||||
|
||||
# SQS Queue (unterschiedlich!)
|
||||
- SQS_QUEUE_URL=https://sqs.eu-central-1.amazonaws.com/123456789/bizmatch-net-queue
|
||||
|
||||
# Worker Settings
|
||||
- POLL_INTERVAL=20
|
||||
- MAX_MESSAGES=10
|
||||
- VISIBILITY_TIMEOUT=300
|
||||
|
||||
# SMTP Configuration (gleicher Server!)
|
||||
- SMTP_HOST=192.168.1.10
|
||||
- SMTP_PORT=25
|
||||
- SMTP_USE_TLS=false
|
||||
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "5"
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "pgrep", "-f", "worker.py"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
Reference in New Issue
Block a user