Comments (9)
@xirixiz can you tell me where to mount the host SSL folder into the DSMR-reader, so that the cert is used in the container.
from dsmr-reader-docker.
Hi, I`m not sure what you'd like me to change as you posted the solution yourself 😄.
You can mount a volume containing your certificate and then use it within your container.
from dsmr-reader-docker.
The example docker-compose file is from a different (unifi) container. Can we map volumes inside this container? Can you help me how and where to map the SSL cert inside the container?
from dsmr-reader-docker.
Yes. This is how it works basically:
volumes:
- './source_from_local_machine:/mount_folder_in_docker_container'
from dsmr-reader-docker.
I would also like to know the answer to this question! 👍
from dsmr-reader-docker.
Question for you first, why would you do that?
from dsmr-reader-docker.
... sorry, forget my question, I was reading SSH instead of SSL...
from dsmr-reader-docker.
As it's Docker running with nginx, it's possible to follow the standard procedure:
https://docs.nginx.com/nginx/admin-guide/security-controls/securing-http-traffic-upstream/
https://docs.nginx.com/nginx/admin-guide/security-controls/terminating-ssl-http/
You could also use a Docker example as a reference:
https://www.freecodecamp.org/news/docker-nginx-letsencrypt-easy-secure-reverse-proxy-40165ba3aee2/
However, you probably need additional config in /etc/nginx/conf.d, so you need to mount this in your Docker image. Ofcourse you could make it optional and create a PR so everyone can optionally make use of it.
from dsmr-reader-docker.
As it's Docker running with nginx, it's possible to follow the standard procedure:
https://docs.nginx.com/nginx/admin-guide/security-controls/securing-http-traffic-upstream/
https://docs.nginx.com/nginx/admin-guide/security-controls/terminating-ssl-http/You could also use a Docker example as a reference:
https://www.freecodecamp.org/news/docker-nginx-letsencrypt-easy-secure-reverse-proxy-40165ba3aee2/However, you probably need additional config in /etc/nginx/conf.d, so you need to mount this in your Docker image. Ofcourse you could make it optional and create a PR so everyone can optionally make use of it.
Hi,
I’m not really that much of a coding expert, definately not combined with docker containers. Yet, wouldn’t it be a good idea and easy implementation to just add an ENV: SSL
If SSL == True, then add the following lines to the nginx config:
listen 443 ssl;
ssl_certificate /etc/ssl/private/fullchain.pem
ssl_certificate_key /etc/ssl/private/privkey.pem
With the description that the folder from Let’sEncrypt needs to be mounted on /etc/ssl/private in the container with the right privileges. This spares me a lot of customization of the original docker.
from dsmr-reader-docker.
Related Issues (20)
- Trying to ru dsmr-reader image in remote-logging client, cannot get it to work HOT 2
- Consider alternate image registry to Docker Hub HOT 3
- Jadahl.com website for Synology drivers no longer exist HOT 1
- Empty environment variable DOCKER_TARGET_RELEASE HOT 11
- ENV DSMRREADER_REMOTE_DATALOGGER_INPUT_METHOD not working HOT 11
- Some observations on the docker implementation HOT 2
- OperationalError: could not translate host name "dsmrdb" to address: Name does not resolve
- NGINX port incorrect after restart when using NGINX_LISTEN_PORT HOT 2
- Container does not start: 20-set-app-defaults: line 213: syntax error near unexpected token `}' HOT 2
- ENABLE_NGINX_SSL does not work anymore HOT 4
- Database is not restoring HOT 1
- Can't connect to a postgres DB using encryption HOT 1
- Documentation request HOT 1
- Mqtt stopt met werken HOT 21
- Wrong media type for manifest HOT 1
- Upgrade the PostgreSQL client portion to version 15 in the docker-image HOT 3
- pg_dump: error :aborting because of server version mismatch HOT 11
- Missing docs / install & configure HOT 4
- Postgres update from 10 to 15 failed (with fix for: User "dsmrreader" does not have a valid SCRAM secret) HOT 6
- Docker container in warning status, logs with errors HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsmr-reader-docker.