-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
74 lines (61 loc) · 2.8 KB
/
.env.example
File metadata and controls
74 lines (61 loc) · 2.8 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
62
63
64
65
66
67
68
69
70
71
72
73
74
# Docker Compose Environment Variables
# Copy this file to .env and update values as needed
# Python version configuration
PYTHON_VERSION=3.13
PYTHON_VERSION_FULL=3.13
PYTHON_VERSION_SHORT=py313
# User/Group IDs for container processes
# These should match your host user to avoid permission issues
# Use 'id -u' and 'id -g' on Linux/Mac to get your values
UID=1000
GID=1000
# Development Configuration (docker-compose.yml)
# These use default passwords suitable for local development
RABBITMQ_USERNAME=discogsography
RABBITMQ_PASSWORD=discogsography
RABBITMQ_HOST=localhost
NEO4J_HOST=localhost
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=discogsography
POSTGRES_HOST=localhost
POSTGRES_USERNAME=discogsography
POSTGRES_PASSWORD=discogsography
POSTGRES_DATABASE=discogsography
REDIS_HOST=localhost
DISCOGS_ROOT=/discogs-data
# Production Configuration (docker-compose.prod.yml)
# These are only used when running with the production overlay
# CHANGE THESE VALUES FOR PRODUCTION!
# JWT Secret — used by the API service for token signing
# Generate with: openssl rand -hex 32
JWT_SECRET_KEY=CHANGE_ME_IN_PRODUCTION
# OAuth encryption key — Fernet symmetric key used to encrypt Discogs consumer keys and OAuth tokens at rest
# Required in production; if unset, tokens are stored in plaintext
# Generate with: uv run python -c 'from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())'
OAUTH_ENCRYPTION_KEY=CHANGE_ME_IN_PRODUCTION
# RabbitMQ Production (secrets written to secrets/ directory)
RABBITMQ_USERNAME=discogsography
RABBITMQ_PASSWORD=CHANGE_ME_IN_PRODUCTION
# PostgreSQL Production
POSTGRES_USER=discogsography
POSTGRES_PASSWORD=CHANGE_ME_IN_PRODUCTION
POSTGRES_DB=discogsography
# Neo4j Production
NEO4J_USER=neo4j
NEO4J_PASSWORD=CHANGE_ME_IN_PRODUCTION
NEO4J_HEAP_SIZE=2G
# Optional: Override service configuration
# PERIODIC_CHECK_DAYS=15 # How often extractor checks for new data
# STARTUP_DELAY=10 # Seconds to wait before starting services
# LOG_LEVEL=INFO # Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
# Optional: Consumer Management (Graphinator, Tableinator)
# CONSUMER_CANCEL_DELAY=300 # Seconds before canceling idle consumers (default: 300)
# QUEUE_CHECK_INTERVAL=3600 # Seconds between queue checks when idle (default: 3600)
# Optional: Batch Processing - Neo4j (Graphinator)
# NEO4J_BATCH_MODE=true # Enable batch processing (default: true)
# NEO4J_BATCH_SIZE=100 # Records per batch (default: 100)
# NEO4J_BATCH_FLUSH_INTERVAL=5.0 # Seconds between flushes (default: 5.0)
# Optional: Batch Processing - PostgreSQL (Tableinator)
# POSTGRES_BATCH_MODE=true # Enable batch processing (default: true)
# POSTGRES_BATCH_SIZE=100 # Records per batch (default: 100)
# POSTGRES_BATCH_FLUSH_INTERVAL=5.0 # Seconds between flushes (default: 5.0)