Skip to content

Instantly share code, notes, and snippets.

@crsuarez
Forked from stevespringett/docker-compose.yml
Created January 13, 2022 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crsuarez/a36fd9e01c7906b5623bfede5a97e4ae to your computer and use it in GitHub Desktop.
Save crsuarez/a36fd9e01c7906b5623bfede5a97e4ae 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment