Skip to content

Instantly share code, notes, and snippets.

@stevespringett
Created January 4, 2019 21:00
Show Gist options
  • Select an option

  • Save stevespringett/7179788bcdf94c6a7a2cd2361647f184 to your computer and use it in GitHub Desktop.

Select an option

Save stevespringett/7179788bcdf94c6a7a2cd2361647f184 to your computer and use it in GitHub Desktop.
Dependency-Track sample compose file with PostgreSQL - This doesn't take into account startup/timing to ensure PostgreSQL is ready to accept connections before Dependency-Track startups up.
version: '3'
services:
postgres10:
environment:
- POSTGRES_USER=dtrack
- POSTGRES_PASSWORD=changeme
image: 'postgres:10.5'
volumes:
- './postgres-data:/var/lib/postgresql/data'
dtrack:
environment:
- ALPINE_DATABASE_MODE=external
- ALPINE_DATABASE_URL=jdbc:postgresql://postgres10:5432/dtrack
- ALPINE_DATABASE_DRIVER=org.postgresql.Driver
- ALPINE_DATABASE_DRIVER_PATH=/extlib/postgresql-42.2.5.jar
- ALPINE_DATABASE_USERNAME=dtrack
- ALPINE_DATABASE_PASSWORD=changeme
image: 'owasp/dependency-track'
ports:
- '80:8080'
volumes:
- './data:/data'
depends_on:
- postgres10
@spmishra121
Copy link

Hi @stevespringett ,

Is this an issue?

curl -v https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-2002.json.gz

  • Trying 18.235.227.114...
  • TCP_NODELAY set
  • Trying 2600:1f18:268d:1d01:f609:5e91:8a48:f546...
  • TCP_NODELAY set
  • Immediate connect fail for 2600:1f18:268d:1d01:f609:5e91:8a48:f546: Network is unreachable
  • Connected to nvd.nist.gov (18.235.227.114) port 443 (#0)
  • ALPN, offering h2
  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@strength
  • successfully set certificate verify locations:
  • CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  • TLSv1.2 (OUT), TLS header, Certificate Status (22):
  • TLSv1.2 (OUT), TLS handshake, Client hello (1):
  • TLSv1.2 (IN), TLS handshake, Server hello (2):
  • TLSv1.2 (IN), TLS handshake, Certificate (11):
  • TLSv1.2 (OUT), TLS alert, certificate expired (557):
  • SSL certificate problem: certificate has expired
  • Closing connection 0
    curl: (60) SSL certificate problem: certificate has expired
    More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment