docker-compose
warning
This page is working in progress, please check back later for more details.
OPCUA Omni Edge Server can be also deployed with Docker Compose, which simplifies the deployment process by allowing you to define and run multi-container Docker applications. Below are the steps to set up and run the server using Docker Compose.
Prerequisites
- Ensure you have Docker and Docker Compose installed on your machine.
- You should have a basic understanding of Docker and Docker Compose concepts.
docker-compose.yml
Create a file named docker-compose.yml in your project directory. This file will define the services, networks, and volumes required for the OPCUA Omni Edge Server.
version: '3.8'
services:
opcua-omni-edge:
image: sterfive/opcua-omni-edge:latest
container_name: opcua-omni-edge
ports:
- "4840:4840" # Expose the OPC UA server port
volumes:
- ./config:/app/config # Mount the configuration directory
environment:
- NODE_ENV=production # Set the environment to production
restart: unless-stopped # Restart policy
networks:
default:
driver: bridge # Use the default bridge network