Mostly ready for first test run but there is one improvement I want to implement first
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user