-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
37 lines (36 loc) · 1.25 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
version: '3.8'
services:
web:
build: .
ports:
- "5000:5000"
environment:
# Custom User/Group IDs (optional)
# Supports both PGID (Linuxserver.io convention) and legacy GUID.
# Aliasing is handled inside the entrypoint script (bash nested expansion).
- PUID=${PUID:-1000}
- GUID=${GUID:-1000}
- PGID=${PGID:-}
# Application configuration
- SECRET_KEY=${SECRET_KEY}
- DATABASE_URL=${DATABASE_URL:-sqlite:///subscriptions.db}
- MAIL_SERVER=${MAIL_SERVER}
- MAIL_PORT=${MAIL_PORT}
- MAIL_USE_TLS=${MAIL_USE_TLS}
- MAIL_USERNAME=${MAIL_USERNAME}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- MAIL_FROM=${MAIL_FROM}
- DAYS_BEFORE_EXPIRY=${DAYS_BEFORE_EXPIRY}
# Timeout optimization settings
- CURRENCY_REFRESH_MINUTES=${CURRENCY_REFRESH_MINUTES:-1440}
- CURRENCY_PROVIDER_PRIORITY=${CURRENCY_PROVIDER_PRIORITY:-frankfurter,floatrates,erapi_open}
- PERFORMANCE_LOGGING=${PERFORMANCE_LOGGING:-true}
volumes:
- ./data:/app/instance
healthcheck:
test: ["CMD", "curl", "-f", "-s", "-o", "/dev/null", "http://localhost:5000/health"]
interval: 5m
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped