Skip to content

Commit

Permalink
Add possibility to configure driver.options.privateCA
Browse files Browse the repository at this point in the history
  • Loading branch information
ppawlowski committed Nov 26, 2024
1 parent 2f3372d commit b5a1a04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ EMAIL_PORT=587
EMAIL_SECURE=""
EMAIL_USER=""
EMAIL_PASSWORD=""

### Docker Driver options
DOCKER_DRIVER_PRIVATE_CA=""
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ configs:
type: docker
options:
socket: /tmp/docker.sock
${DOCKER_DRIVER_PRIVATE_CA:+privateCA: /mnt/docker_private_ca.pem}
broker:
url: mqtt://broker:1883
public_url: ws${TLS_ENABLED:+s}://mqtt.${DOMAIN:?error}
Expand All @@ -37,6 +38,8 @@ configs:
fileStore:
enable: true
url: http://file-server:3001
flowfuse_docker_ca:
environment: DOCKER_DRIVER_PRIVATE_CA
flowfuse_storage:
content: |
port: 3001
Expand Down Expand Up @@ -478,6 +481,8 @@ services:
configs:
- source: flowfuse
target: /usr/src/forge/etc/flowforge.yml
- source: flowfuse_docker_ca
target: /mnt/docker_private_ca.pem
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
- flowfuse-persistent-storage:/opt/persistent-storage
Expand Down

0 comments on commit b5a1a04

Please sign in to comment.