This repository provides a Docker Compose setup for Factry Historian, allowing you to quickly deploy a Historian server along with PostgreSQL, InfluxDB, and Grafana.
If you want to get started as quickly as possible, just run:
git clone https://github.com/factrylabs/historian
cd historian
docker compose up -d✅ No environment variables needed
✅ Everything runs with default values
✅ Access the services:
- Factry Historian → http://localhost:8000 (Default login:
factry/password) - Grafana → http://localhost:3000 (Login:
admin/admin) - InfluxDB → http://localhost:8086
- PostgreSQL →
localhost:5432(User:factry, Password:password)
🚨 Important: This quick setup uses default passwords and should not be used for production. See the next section for customizing the setup.
Once the services are running, open Factry Historian at: 👉 http://localhost:8000
- Login → Default username:
factry, password:password(change immediately). - Activate a License (or start a trial).
- Set Up an Organization → Choose a name & configure PostgreSQL access.
- Connect to Internal Database → Use for this docker:
- Host:
http://influx:8086 - Admin User:
factry - Admin Password:
password
- Host:
- Historian Configuration → Ensure correct API & authentication settings.
- Finish Setup
- Go to Configuration > Time Series Databases.
- Create a database with:
- Name:
historian - Admin User:
factry - Admin Password:
password - Host:
http://influx:8086 - Database:
historian
- Name:
- Click Save & Test.
- Navigate to Collectors in Factry Historian.
- Click Create Collector → e.g., OPC-UA Collector.
- Click Generate Token and copy it.
- Then proceed with the installation of your collector according to the README at https://github.com/factrylabs/collector.
- Pass the copied token as API_TOKEN.
- Run the collector with:
docker run -d --restart unless-stopped --name factry-collector -e API_TOKEN=<API_TOKEN> -e PRODUCT=opc-ua ghcr.io/factrylabs/collector:latestIn the advanced directory, you'll find a more customizable docker compose setup with environment variables for configuration and a cloud-init script to automate the setup in a cloud environment.
For help, visit: 📌 Factry Community https://www.reddit.com/r/Factry/