Execution with Docker
With Docker Compose
Recommended
-
Create a
docker-compose.yml
file and insert the following content. Alternatively, you can download the file below.services: collectu: image: ghcr.io/core4x/collectu-core:latest container_name: collectu-core restart: always environment: # Overwrites the settings.ini variables. - APP_DESCRIPTION=My Machine # The description of the app. - CONFIG=configuration.yml # The filepath to the configuration file. - AUTO_START=1 # Load configuration file on start-up. - AUTO_INSTALL=1 # Automatically install third party requirements. - INITIAL_DOWNLOAD=1 # Automatically download modules from hub during first start. - AUTO_DOWNLOAD=1 # Automatically download modules if they do not exist locally. - API=1 # Start the api. - API_HOST=0.0.0.0 # Host address of the api. - API_PORT=8181 # Port of the api. - API_AUTHENTICATION=1 # Is authentication required for the local api and frontend. - FRONTEND=1 # Start the frontend. - FRONTEND_HOST=0.0.0.0 # Host address of the frontend. - FRONTEND_PORT=80 # Port of the frontend. - MOTHERSHIPS=[] # The host addresses of the motherships to report to. # - HUB_API_ACCESS_TOKEN=<token> # The api access token of the hub profile collectu.de. - REPORT_TO_HUB=1 # Shall this app report and receive tasks from the hub collectu.de. - SEND_USAGE_STATISTICS=1 # Send usage statistics. - URL=127.0.0.1 # The address of the application. - GIT_DISCOVERY_ACROSS_FILESYSTEM=1 # Required by third party package (GitPython) to access the local repository. ports: - "8181:8181" # API - "80:80" # FRONTEND # - "8123:8123" # REST Endpoint (Input module) # - "9999:9999" # TCP Server (Input module) volumes: - './configuration:/collectu-core/configuration' - './logs:/collectu-core/logs' - './data:/collectu-core/data' - './modules/inputs:/collectu-core/src/modules/inputs' - './modules/outputs:/collectu-core/src/modules/outputs' - './modules/processors:/collectu-core/src/modules/processors' - './git_access_token.txt:/collectu-core/git_access_token.txt' # Delete this, if not used. - './api_access_token.txt:/collectu-core/api_access_token.txt' # Delete this, if specified as env var.
-
Create an api access token. Download the created token and save it in the same directory as your docker-compose file. Otherwise, comment the according line in the docker-compose file.
-
If you have subscribed to a plan, download your personal git access token and place the file in the same directory as your docker-compose file. Otherwise, comment the according line in the docker-compose file.
-
Open a command line interface (e.g. Git Bash) and execute:
docker compose up
- Continue with our First Steps.
With Docker
-
Execute (replace the token with your personal api access token):
docker run -e HUB_API_ACCESS_TOKEN=<token> -p 8181:8181 -p 80:80 --name collectu-core ghcr.io/core4x/collectu-core
Alternatively, you can place your personal api access token in the same directory, where you execute the command.
docker run -p 8181:8181 -p 80:80 --name collectu-core -v ./api_access_token.txt:/collectu-core/api_access_token.txt ghcr.io/core4x/collectu-core
-
If you have subscribed to a plan, download your personal git access token and place the file in the same directory, where you execute the command.
The command should now look like this:
docker run -e HUB_API_ACCESS_TOKEN=<token> -p 8181:8181 -p 80:80 --name collectu-core -v ./git_access_token.txt:/collectu-core/git_access_token.txt ghcr.io/core4x/collectu-core
- Continue with our First Steps.
HUB_API_ACCESS_TOKEN
.
Python
First Steps