Hi Everyone,
I wanted to share the set up I am using for the Gold Cert Test. Since I don’t know much about Docker nor running Ignition as a container, I decided to use this approach to solve the problem of having multiple Ignition versions on the same machine:
- 8.3 for the projects I am working on at work. On port 8088/8043.
- 8.1.45 for the Gold Certification. On port 9088/9043.
I wrote this docker-compose.yaml with the config for both services: Ignition and MSSQLEXPRESS.
services:
ignition:
image: inductiveautomation/ignition:8.1.45
container_name: ignition
ports:
- "9088:8088"
- "9043:8043"
environment:
GATEWAY_ADMIN_PASSWORD: password1!
ACCEPT_IGNITION_EULA: "Y"
volumes:
- ignition_data:/usr/local/bin/ignition/data
- ./csv:/csv
networks:
- ign-net
mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
container_name: mssql
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=password1!
- MSSQL_PID=Express
ports:
- "1433:1433"
volumes:
- mssql_data:/var/opt/mssql
- ./db-init:/db-init
networks:
- ign-net
networks:
ign-net:
driver: bridge
volumes:
ignition_data:
mssql_data:
After composing the containers, I restored the gateway and database for the test with no problems and they are connected. The only perk was that I had to update the DB connection settings after I restored the Gateway Backup they give you for the test:
- URL:
jdbc:sqlserver://mssql:1433 - Credentials
- User:
sa - Password:
password1!
- User:
I haven’t had any issues so far, both local gateways (v8.3 and 8.1.45) are up and running.
Let me know what you think, thanks in advance for reading!
Danny L