CuAuPro / alpr-system

This project is an Automatic License Plate Recognition (ALPR) system designed for edge devices and optimized for high performance. It includes an AI Engine for image recognition, a frontend and backend for management, MQTT Databus for communication, and GPIO interfacing for hardware control.
Apache License 2.0
2 stars 2 forks source link

Binding certificates to Docker containers at runtime #3

Closed xBlaz3kx closed 3 months ago

xBlaz3kx commented 4 months ago

This PR should fix issue I mentioned (#1). I've also added some optimizations to your Dockerfiles.

Please test this solution before you merge the PR, as I don't have the Jetson Nano to fully test this setup. Let me know if there are any issues, and I'll help you debug and fix them.

CuAuPro commented 4 months ago

Thank you for your contribution!

What do you think about putting certificates in /var/opt/docker/ folder like:

    volumes:
      - /var/opt/docker/alpr-system/database:/app/backend/database
      # Bind volume with certificates at runtime
      - /var/opt/docker/alpr-system/backend/certs:/app/backend/certs

for example.

I personally feel that it would be better to take a more appropriate and systematic approach.

xBlaz3kx commented 3 months ago

Thank you for your contribution!

What do you think about putting certificates in /var/opt/docker/ folder like:

    volumes:
      - /var/opt/docker/alpr-system/database:/app/backend/database
      # Bind volume with certificates at runtime
      - /var/opt/docker/alpr-system/backend/certs:/app/backend/certs

for example.

I personally feel that it would be better to take a more appropriate and systematic approach.

Since you have included the cert folders in each component's subdirectory, I assumed that's where the TLS/SSL certificates will be generated. Otherwise, I'd recommend creating a script, that will automatically generate all certificates in /var/opt/docker and we can fix this inconvenience.