-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
52 lines (49 loc) · 1.56 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '2'
services:
asneg-demo:
container_name: asneg-demo${BUILD_TAG}
hostname: asneg-demo
image: asneg/asneg-demo:release-4
expose:
- "8889"
volumes:
- demo_server_pki:/etc/OpcUaStack/ASNeG-Demo/pki
webserver:
container_name: webserver${BUILD_TAG}
hostname: webserver
depends_on:
- asneg-demo
environment:
- SERVER_PKI_ROOT_DIR=/tmp/
- SSH_AUTH_SOCK=/ssh-agent
build: .
volumes:
- web_server_pki:/etc/OpcUaStack/OpcUaWebServer/pki
- .:/code
command: >-
bash -c "sed -i 's/127.0.0.1:8889/asneg-demo:8889/' /etc/OpcUaStack/OpcUaWebServer/OpcUaClient0.xml
&& sed -i 's/127.0.0.1:8889/asneg-demo:8889/' /etc/OpcUaStack/OpcUaWebServer/OpcUaClient1.xml
&& sed -i 's/127.0.0.1:8889/asneg-demo:8889/' /etc/OpcUaStack/OpcUaWebServer/OpcUaClientTest.xml
&& OpcUaServer4 /etc/OpcUaStack/OpcUaWebServer/OpcUaServer.xml"
test_client:
container_name: test_client${BUILD_TAG}
build: .
depends_on:
- asneg-demo
- webserver
environment:
- SERVER_PKI_ROOT_DIR=/tmp/
- WSS_GATEWAY_URL=wss://webserver:8082
- WS_GATEWAY_URL=ws://webserver:8082
- WSS_SERVER_URL=wss://webserver:8081
- WS_SERVER_URL=ws://webserver:8081
- OPC_SERVER_URL=opc.tcp://asneg-demo:8889
- DOCKER_ENABLE=YES
command: echo "Test client is ready"
volumes:
- web_server_pki:/tmp/etc/OpcUaStack/OpcUaWebServer/pki
- demo_server_pki:/tmp/etc/OpcUaStack/ASNeG-Demo/pki
- .:/code
volumes:
demo_server_pki:
web_server_pki: