CVE-Search-Docker
CVE-Search-Docker copied to clipboard
Using your own certificate instead of the selfsigned one
For those who are interested in using their own certificate, I added three lines of code to the docker-compose.yml. It's the volumes section.
cve_search:
image: cve_search
build:
context: .
dockerfile: docker/images/cve_search/dockerfile-cve_search
args:
- REPO=cve-search/cve-search
- BRANCH=master
volumes:
- ./cert/certificate.key:/app/etc/certificate.key:ro
- ./cert/certificate.crt:/app/etc/certificate.crt:ro
hostname: cve_search
depends_on:
- redis
- mongo
restart: always
environment:
- PYTHONUNBUFFERED=TRUE
- WORKER_SIZE=1
- MONGODB_HOST=mongo
ports:
- '443:5000'
networks:
- frontend
- backend