You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49-19Lines changed: 49 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,26 @@
1
-
# CGate Server
1
+
# Clipsal C-Gate Server Docker Container
2
2
3
-
This docker image installs the Clipsal CGate Server for use with CBus appliances.
3
+
The Clipsal C-Gate Server is a powerful utility designed to interface with the Clipsal PLC system, connecting via either serial or network connections. This repository provides a Dockerized version of the C-Gate Server, enabling convenient deployment and management of the server within a containerized environment. The C-Gate Server acts as a bridge between the Clipsal PLC system and other devices, facilitating seamless communication.
4
4
5
-
## Install
5
+
## Purpose
6
6
7
-
Here are some example snippets to help you get started creating a container.
7
+
The primary purpose of this project is to encapsulate the Clipsal C-Gate Server within a Docker container, allowing users to deploy the server effortlessly on various platforms. By leveraging Docker's isolation and management capabilities, this solution simplifies the installation and usage of the C-Gate Server, making it an ideal choice for users looking to connect and interact with the Clipsal PLC system.
8
8
9
-
### Docker
9
+
## Features
10
+
11
+
-**Flexible Connectivity:** The C-Gate Server offers support for both serial and network connections, providing a versatile interface to the Clipsal PLC system.
12
+
-**Dockerized Deployment:** The provided Dockerfile enables the creation of a containerized instance of the C-Gate Server, making setup and configuration straightforward.
13
+
-**Customizable Configuration:** The container supports customization through configuration files, allowing users to tailor the server's behavior to their specific needs.
14
+
15
+
## Usage
16
+
17
+
To utilize the Dockerized `cgate-server` container, follow these steps:
18
+
19
+
1.**Build the Docker Image:**
20
+
21
+
```bash
22
+
docker build -t cgate-server .
23
+
```
10
24
11
25
The container supports the following parameters
12
26
@@ -21,7 +35,10 @@ The container supports the following parameters
21
35
|`-v :/tag`| CGate tag directory (XML project files go here) |
22
36
|`-v :/logs`| CGate logs directory |
23
37
24
-
Example usage
38
+
39
+
### Docker
40
+
41
+
Start the container directly with the following example
25
42
26
43
```
27
44
docker create \
@@ -38,11 +55,11 @@ docker create \
38
55
steppinghat/cgate-server
39
56
```
40
57
41
-
### docker-compose
58
+
### Docker Compose:**
42
59
43
-
Compatible with docker-compose v3 schemas
60
+
Create a Docker Compose file (`docker-compose.yml`):
44
61
45
-
```
62
+
```yaml
46
63
version: '3.8'
47
64
48
65
x-disabled:
@@ -52,7 +69,7 @@ services:
52
69
# CNI Serial port (RS232 to USB) to TCP 10001
53
70
ser2sock:
54
71
hostname: "ser2sock"
55
-
image: ser2sock:latest
72
+
image: ghcr.io/damianflynn/ser2sock:latest
56
73
container_name: ser2sock
57
74
restart: unless-stopped
58
75
networks:
@@ -70,7 +87,7 @@ services:
70
87
# Clipsal C-Bus C-Gate Server
71
88
cgate-server:
72
89
hostname: "cgate-server"
73
-
image: cgate-server:latest
90
+
image: ghcr.io/damianflynn/cgate-server:latest
74
91
container_name: cgate-server
75
92
depends_on:
76
93
- ser2sock
@@ -95,16 +112,21 @@ networks:
95
112
external: true
96
113
```
97
114
98
-
### Version tags
115
+
Run the Docker Compose:
99
116
100
-
| Tag | Description |
101
-
| --- | ----------- |
102
-
| latest | Releases from the latest stable branch |
103
-
| 2.11 | Releases from the 2.11.x branch |
104
-
117
+
```bash
118
+
docker-compose up -d
119
+
```
105
120
121
+
## Accessing the C-Gate Server:**
106
122
107
-
## Usage
123
+
Once the container is running, you can access the Clipsal C-Gate Server via the defined ports (e.g., 20023, 20024, etc.). The server will act as an intermediary, managing communication between the Clipsal PLC system and external devices.
124
+
125
+
## Configuration and Persistence
126
+
127
+
The C-Gate Server configuration and associated data are persisted using Docker volumes. Customize your server's behavior by modifying the configuration files found in the `/opt/appdata/cbus/config` volume on your host.
128
+
129
+
#### Toolkit Project
108
130
109
131
Easy installation can be achieved if you already have the XML version of the C-Bus Toolkit project file.
110
132
Place this file in the `/tag` directory; In my example the location on storage is `/opt/appdata/cbus/tags`
@@ -115,7 +137,7 @@ Place this file in the `/tag` directory; In my example the location on storage i
115
137
```
116
138
117
139
118
-
### C-Gate Access Control file
140
+
#### C-Gate Access Control file
119
141
120
142
Access to the server is governed by a file named `access.txt`
121
143
If this file does not already exist, create it in your mapped`/config` folder, as you defined in your docker configuration.
@@ -146,3 +168,11 @@ remote 172.16.100.10 Program
146
168
```
147
169
148
170
In my example the final line is my windows machine which runs C-Bus toolkit when i need to work on the system
171
+
172
+
## Troubleshooting
173
+
174
+
If you encounter any issues, ensure that your configuration settings and Docker Compose file match your specific hardware setup and requirements.
175
+
176
+
## Conclusion
177
+
178
+
By containerizing the Clipsal C-Gate Server using Docker, this project empowers users to effortlessly deploy, manage, and utilize the server for seamless communication with the Clipsal PLC system. This containerized approach enhances flexibility and simplifies deployment, enabling users to connect to the Clipsal system with ease and efficiency.
0 commit comments