Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (35 sloc) 1.45 KB

Important

This Version of PyScada is BETA software and may have serious bugs which may cause damage to your computer, automation hardware and data. It is not intended for use in production systems! You use this Software on your own risk!

Docker

This guide covers the basic setup of PyScada with Docker and Docker Compose.

Download the necessary files

First of all download the docker config files for building your images.

Using Git.

git clone https://github.com/trombastic/PyScada.git
cd PyScada/docker

Using wget.

wget -qO- -O tmp.zip https://github.com/trombastic/PyScada/archive/dev/0.7.x.zip && unzip tmp.zip && rm tmp.zip
cd PyScada-dev-0.7.x/docker

Generating SSL Certificates

Generate ssl certificates for using ssl.

cd nginx/ssl
openssl req -x509 -nodes -days 1780 -newkey rsa:2048 -keyout ./pyscada_server.key -out ./pyscada_server.crt

Build and Run the Image

Build the PyScada Docker Image.

sudo docker-compose build

After the Images have been successfully build we need to initialize the Database and Create a superuser.

sudo docker-compose run pyscada /src/pyscada/pyscada_init
sudo docker-compose run pyscada /src/pyscada/manage.py createsuperuser

The last step is to start the Container.

sudo docker-compose up -d
You can’t perform that action at this time.