Skip to content

Running DT with containers and PostgreSQL - Need to some basic setup guidance #3955

Answered by nscuro
nigellh asked this question in Q&A
Discussion options

You must be logged in to vote
services:
  apiserver:
    image: dependencytrack/apiserver:4.11.5
    depends_on:
    - postgres
    environment:
      ALPINE_DATABASE_MODE: "external"
      ALPINE_DATABASE_URL: "jdbc:postgresql://postgres:5432/dtrack"
      ALPINE_DATABASE_DRIVER: "org.postgresql.Driver"
      ALPINE_DATABASE_USERNAME: "dtrack"
      ALPINE_DATABASE_PASSWORD: "dtrack"
    ports:
    - "8080:8080"
    volumes:
    - "apiserver-data:/data"
    restart: unless-stopped

  frontend:
    image: dependencytrack/frontend:4.11.5
    environment:
      API_BASE_URL: "http://dtrack.example.com:8080"
    ports:
    - "8081:8080"
    restart: unless-stopped

  postgres:
    image: postgres:16-alpine
    environment:…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@nigellh
Comment options

@nscuro
Comment options

@nscuro
Comment options

Answer selected by nigellh
@nigellh
Comment options

Comment options

You must be logged in to vote
1 reply
@nscuro
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants