-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (47 loc) · 1.41 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (47 loc) · 1.41 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
services:
amazon-price-monitor:
build:
context: .
dockerfile: Dockerfile
container_name: amazon-price-monitor
restart: unless-stopped
# Environment variables
environment:
- SMTP_SERVER=${SMTP_SERVER:-smtp.gmail.com}
- SMTP_PORT=${SMTP_PORT:-587}
- SMTP_SENDER_EMAIL=${SMTP_SENDER_EMAIL}
- SMTP_SENDER_PASSWORD=${SMTP_SENDER_PASSWORD}
- SMTP_RECIPIENT_EMAIL=${SMTP_RECIPIENT_EMAIL}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- DEBUG=False
- PLAYWRIGHT_BROWSERS_PATH=/home/appuser/.local/share/ms-playwright
# Volumes for persistent data
volumes:
- ./data:/app/data
- ./logs:/app/logs
- ./config.json:/app/config.json:ro
- price-monitor-cache:/home/appuser/.local/share/ms-playwright
# Resource limits for Raspberry Pi
deploy:
resources:
limits:
memory: 512M
cpus: '0.5'
# Network configuration
ports:
- "8000:8000" # Remove if no web interface
# Health check - updated for app structure
healthcheck:
test: ["CMD", "python", "-c", "import sys; sys.path.append('/app'); from app.main import *; sys.exit(0)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
# Logging configuration
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
price-monitor-cache: