Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using your own certificate instead of the selfsigned one #41

Open
phummelen opened this issue Jun 7, 2024 · 0 comments
Open

Using your own certificate instead of the selfsigned one #41

phummelen opened this issue Jun 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@phummelen
Copy link

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

@phummelen phummelen added the enhancement New feature or request label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant