forked from lorenzodonini/ocpp-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.tls.yml
45 lines (44 loc) · 1.3 KB
/
docker-compose.tls.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
version: '3'
services:
central-system:
build:
context: ../..
dockerfile: cs/Dockerfile
image: ldonini/ocpp1.6-central-system:latest
container_name: central-system
volumes:
- ./certs/cs:/usr/local/share/certs
- ./certs/ca.crt:/usr/local/share/certs/ca.crt
environment:
- SERVER_LISTEN_PORT=443
- TLS_ENABLED=true
- CA_CERTIFICATE_PATH=/usr/local/share/certs/ca.crt
- SERVER_CERTIFICATE_PATH=/usr/local/share/certs/central-system.crt
- SERVER_CERTIFICATE_KEY_PATH=/usr/local/share/certs/central-system.key
ports:
- "443:443"
networks:
- sim
tty: true
charge-point:
build:
context: ../..
dockerfile: cp/Dockerfile
image: ldonini/ocpp1.6-charge-point:latest
container_name: charge-point
volumes:
- ./certs/cp:/usr/local/share/certs
- ./certs/ca.crt:/usr/local/share/certs/ca.crt
environment:
- CLIENT_ID=chargePointSim
- CENTRAL_SYSTEM_URL=wss://central-system:443
- TLS_ENABLED=true
- CA_CERTIFICATE_PATH=/usr/local/share/certs/ca.crt
- CLIENT_CERTIFICATE_PATH=/usr/local/share/certs/charge-point.crt
- CLIENT_CERTIFICATE_KEY_PATH=/usr/local/share/certs/charge-point.key
networks:
- sim
tty: true
networks:
sim:
driver: bridge