Sign inSign up

knowai/automation

By knowai

Updated about 1 month ago

Make a Data Acquisition System for your Industrial Plant with the power of Python

Image
Languages & frameworks
Machine learning & AI
Monitoring & observability
0

4.5K

knowai/automation repository overview

Deploy

Make the following docker-compose.yml file:

services:
  automation:
    container_name: "Automation"
    image: "knowai/automation:${AUTOMATION_VERSION:-latest}"
    restart: always
    ports:
      - ${AUTOMATION_PORT:-8050}:${AUTOMATION_PORT:-8050}
    volumes:
      - automation_db:/app/db
      - automation_logs:/app/logs
    logging:
      driver: "json-file"
      options:
        max-size: "10m" # Rota cuando llega a 10MB
        max-file: "3" # Guarda máximo 3 archivos (30MB total)
    environment:
      OPCUA_SERVER_PORT: ${AUTOMATION_OPCUA_SERVER_PORT:-53530}
    tmpfs:
      - /tmp:size=500k
    deploy:
      resources:
        limits:
          cpus: "0.5"
          memory: 256M
    healthcheck:
      test: ["CMD", "python", "/app/healthcheck.py"]
      interval: 15s
      timeout: 10s
      retries: 3

volumes:
  automation_db:
  automation_logs:

Start the docker compose file

sudo docker compose up -d

Go to http://localhost:8050 to view the config page

You can see your app logs on

sudo tail -f /var/lib/docker/volumes/repo_automation_logs/_data/app.log

Remember!, you have to get credentials to see this log

You can see the documentation on: https://pyautomation.readthedocs.io/en/latest/

Tag summary

Content type

Image

Digest

sha256:9ef761014

Size

119.1 MB

Last updated

about 1 month ago

docker pull knowai/automation