Skip to content

Commit

Permalink
Provide private CA as a path to file on docker host
Browse files Browse the repository at this point in the history
  • Loading branch information
ppawlowski committed Nov 26, 2024
1 parent b5a1a04 commit 9344de6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ EMAIL_USER=""
EMAIL_PASSWORD=""

### Docker Driver options
DOCKER_DRIVER_PRIVATE_CA=""
DOCKER_DRIVER_PRIVATE_CA_PATH=""
6 changes: 1 addition & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ configs:
type: docker
options:
socket: /tmp/docker.sock
${DOCKER_DRIVER_PRIVATE_CA:+privateCA: /mnt/docker_private_ca.pem}
${DOCKER_DRIVER_PRIVATE_CA_PATH:+privateCA: ${DOCKER_DRIVER_PRIVATE_CA_PATH}}
broker:
url: mqtt://broker:1883
public_url: ws${TLS_ENABLED:+s}://mqtt.${DOMAIN:?error}
Expand All @@ -38,8 +38,6 @@ 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 @@ -481,8 +479,6 @@ 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 9344de6

Please sign in to comment.