Mostly ready for first test run but there is one improvement I want to implement first

This commit is contained in:
Jonas Linter
2025-10-21 17:46:27 +02:00
parent 6e4cc7ed1d
commit ec10ca51e0
8 changed files with 1612 additions and 28 deletions

View File

@@ -19,6 +19,32 @@ services:
retries: 5
restart: unless-stopped
# Meta API Grabber - Scheduled data collection
meta-grabber:
build:
context: .
dockerfile: Dockerfile
container_name: meta_api_grabber
environment:
# Database connection (connects to timescaledb service)
DATABASE_URL: postgresql://meta_user:meta_password@timescaledb:5432/meta_insights
env_file:
- .env # Must contain META_ACCESS_TOKEN, META_APP_ID, META_APP_SECRET
volumes:
# Mount .env for token updates (auto-refresh will update the file)
- ./.env:/app/.env
# Mount token metadata file (preserves token refresh state across restarts)
- ./.meta_token.json:/app/.meta_token.json
depends_on:
timescaledb:
condition: service_healthy
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Optional: Grafana for visualization
grafana:
image: grafana/grafana:latest