Replies: 1 comment 4 replies
-
You can take inspiration from the setup we use for testing during development:
Merge them into one file and it should be good to go: 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:
- "127.0.0.1:8080:8080"
volumes:
- "apiserver-data:/data"
restart: unless-stopped
frontend:
image: dependencytrack/frontend:4.11.5
environment:
API_BASE_URL: "http://localhost:8080"
ports:
- "127.0.0.1:8081:8080"
restart: unless-stopped
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: "dtrack"
POSTGRES_USER: "dtrack"
POSTGRES_PASSWORD: "dtrack"
ports:
- "127.0.0.1:5432:5432"
volumes:
- "postgres-data:/var/lib/postgresql/data"
restart: unless-stopped
volumes:
apiserver-data: { }
postgres-data: { } Some instructions for PostgreSQL specific configuration are here: https://dependencytrack.github.io/hyades/latest/operations/database/#basic-configuration For a small installation you should be fine without additional config, but if performance is important to you, you should definitely have a look at that. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have never used PsotgreSQL so complete newbie from that point of view. Or current method of running DT is basically the curl command to get the docker-compose.yml file, tweak the localhost to the server address to allow remote access and docker compose up-d. Works great.
Unfortunately, that uses the H2 database and every couple of months it corrupts and I have to rebuild from scratch.
I have no idea how to get DT working with PostrgreSQL. The documentation (from my point of view) is thin, particularly from a PostgreSQL newbie point of view.
Hoping someone can help as I really do not want to have to keep rebuilding it from scratch and I am the only one that knows how! It is not technically a production system, but I have a good number of people who use it for looking at vulnerabilities.
Beta Was this translation helpful? Give feedback.
All reactions