Skip to content

Using your own certificate instead of the selfsigned one #41

Open
@phummelen

Description

@phummelen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions