Create OpenPLC Docker, modify OpenPLC configuration including Slave Configuration and Settings, import your selected structured text file and start OpenPLC in run mode with the uploaded script.st.
- Copy your script into script.st or select your own OpenPLC st file.
- Modify database.sh according to your requirement. See comments for more details.
- Build Docker image
docker build -t openplc:v3 --build-arg script=<your script.st> --build-arg database=database.sh .
- Run Docker image
docker run -it --rm --privileged -p 8080:8080 openplc:v3
- Alternatively run with docker-compose.yml.