Updated meta_api_grabber to view manager
This commit is contained in:
@@ -19,22 +19,22 @@ services:
|
||||
retries: 5
|
||||
restart: unless-stopped
|
||||
|
||||
# Meta API Grabber - Scheduled data collection
|
||||
meta-grabber:
|
||||
# View Manager - Setup database schema and views
|
||||
view-manager:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: meta_api_grabber
|
||||
container_name: view_manager
|
||||
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
|
||||
- .env # Optional: for any additional configuration
|
||||
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
|
||||
# Mount metadata.yaml for account configuration
|
||||
- ./metadata.yaml:/app/metadata.yaml:ro
|
||||
# Optional: Mount custom db_schema.sql if you want to edit it externally
|
||||
# - ./src/meta_api_grabber/db_schema.sql:/app/src/meta_api_grabber/db_schema.sql:ro
|
||||
depends_on:
|
||||
timescaledb:
|
||||
condition: service_healthy
|
||||
|
||||
Reference in New Issue
Block a user