Role to run dependencytrack in a docker container
- Default Variables
- docker_container_dependencytrack_api_base_url
- docker_container_dependencytrack_apiserver_comparisons
- docker_container_dependencytrack_apiserver_env
- docker_container_dependencytrack_apiserver_image
- docker_container_dependencytrack_apiserver_labels
- docker_container_dependencytrack_apiserver_name
- docker_container_dependencytrack_apiserver_networks
- docker_container_dependencytrack_apiserver_ports
- docker_container_dependencytrack_apiserver_volume_dir
- docker_container_dependencytrack_apiserver_volumes
- docker_container_dependencytrack_database_name
- docker_container_dependencytrack_database_password
- docker_container_dependencytrack_database_user
- docker_container_dependencytrack_db_comparisons
- docker_container_dependencytrack_db_env
- docker_container_dependencytrack_db_image
- docker_container_dependencytrack_db_labels
- docker_container_dependencytrack_db_name
- docker_container_dependencytrack_db_networks
- docker_container_dependencytrack_db_ports
- docker_container_dependencytrack_db_volume_dir
- docker_container_dependencytrack_db_volumes
- docker_container_dependencytrack_frontend_comparisons
- docker_container_dependencytrack_frontend_env
- docker_container_dependencytrack_frontend_image
- docker_container_dependencytrack_frontend_labels
- docker_container_dependencytrack_frontend_name
- docker_container_dependencytrack_frontend_networks
- docker_container_dependencytrack_frontend_ports
- docker_container_dependencytrack_frontend_volume_dir
- docker_container_dependencytrack_frontend_volumes
- docker_container_dependencytrack_name
- docker_container_dependencytrack_restic_enable
- docker_container_dependencytrack_restic_retention
- docker_container_dependencytrack_restic_s3_bucket_name
- docker_container_dependencytrack_restic_s3_endpoint
- docker_container_dependencytrack_restic_s3_repo
- docker_container_dependencytrack_restic_s3_repo_access_key
- docker_container_dependencytrack_restic_s3_repo_password
- docker_container_dependencytrack_restic_s3_repo_secret_key
- docker_container_dependencytrack_restic_tag
- docker_container_dependencytrack_volume_dir
- docker_image_dependencytrack_apiserver_name
- docker_image_dependencytrack_apiserver_pull
- docker_image_dependencytrack_db_name
- docker_image_dependencytrack_db_pull
- docker_image_dependencytrack_frontend_name
- docker_image_dependencytrack_frontend_pull
- docker_network_dependencytrack_apiserver_name
- docker_network_dependencytrack_db_name
- docker_network_dependencytrack_frontend_name
- docker_network_dependencytrack_name
- Discovered Tags
- Dependencies
- License
- Author
docker_container_dependencytrack_api_base_url: http://localhost:8081
Allows to specify how properties of existing containers are compared with module options to decide whether the container should be recreated / updated or not.
docker_container_dependencytrack_apiserver_comparisons:
image: strict
env: strict
volumes: strict
Dictionery of key,value pairs for docker environment variables to configure dependencytrack.
docker_container_dependencytrack_apiserver_env:
ALPINE_DATABASE_MODE: external
ALPINE_DATABASE_URL: jdbc:postgresql://db:5432/{{ docker_container_dependencytrack_database_name
}}
ALPINE_DATABASE_DRIVER: org.postgresql.Driver
ALPINE_DATABASE_USERNAME: '{{ docker_container_dependencytrack_database_user }}'
ALPINE_DATABASE_PASSWORD: '{{ docker_container_dependencytrack_database_password
}}'
Repository path and tag used to create the container. If an image is not found or pull is true, the image will be pulled from the registry. If no tag is included, latest will be used.
docker_container_dependencytrack_apiserver_image: '{{ docker_image_dependencytrack_apiserver_name
}}'
Dictionary of key value pairs for container labels.
Example:
docker_container_dependencytrack_apiserver_labels:
traefik.enable: "true"
docker_container_dependencytrack_apiserver_labels: {}
Name for the container
docker_container_dependencytrack_apiserver_name: dependencytrack_apiserver
List of networks the container belongs to.
docker_container_dependencytrack_apiserver_networks:
- name: '{{ docker_network_dependencytrack_apiserver_name }}'
links:
- '{{ docker_container_dependencytrack_db_name }}:db'
List of ports to publish from the container to the host.
docker_container_dependencytrack_apiserver_ports:
- 8081:8080
Volume mount host directory, where Treafik config files are stored.
docker_container_dependencytrack_apiserver_volume_dir: '{{ docker_container__base__volume_dir
}}/{{ docker_container_dependencytrack_name }}'
List of volumes to mount within the container.
docker_container_dependencytrack_apiserver_volumes:
- '{{ docker_container_dependencytrack_apiserver_volume_dir }}/data:/data'
Name of the database.
docker_container_dependencytrack_database_name: dtrack
Password of the database user.
docker_container_dependencytrack_database_password: dependencytracksomethingsecret8888
Name of the database user.
docker_container_dependencytrack_database_user: dependencytrack
Allows to specify how properties of existing containers are compared with module options to decide whether the container should be recreated / updated or not.
docker_container_dependencytrack_db_comparisons:
image: strict
env: strict
volumes: strict
Dictionery of key,value pairs for docker environment variables to configure dependencytrackdb.
docker_container_dependencytrack_db_env:
POSTGRES_USER: '{{ docker_container_dependencytrack_database_user }}'
POSTGRES_PASSWORD: '{{ docker_container_dependencytrack_database_password }}'
POSTGRES_DB: '{{ docker_container_dependencytrack_database_name }}'
Repository path and tag used to create the container. If an image is not found or pull is true, the image will be pulled from the registry. If no tag is included, latest will be used.
docker_container_dependencytrack_db_image: '{{ docker_image_dependencytrack_db_name
}}'
Dictionary of key value pairs for container labels.
Example:
docker_container_dependencytrack_db_labels:
traefik.enable: "true"
docker_container_dependencytrack_db_labels: {}
Name for the container
docker_container_dependencytrack_db_name: dependencytrack_db
List of networks the container belongs to.
docker_container_dependencytrack_db_networks:
- name: '{{ docker_network_dependencytrack_db_name }}'
aliases: ['{{ docker_container_dependencytrack_db_name }}', db]
List of ports to publish from the container to the host.
docker_container_dependencytrack_db_ports: []
Volume mount host directory, where Treafik config files are stored.
docker_container_dependencytrack_db_volume_dir: '{{ docker_container__base__volume_dir
}}/{{ docker_container_dependencytrack_name }}'
List of volumes to mount within the container.
docker_container_dependencytrack_db_volumes:
- '{{ docker_container_dependencytrack_db_volume_dir }}/postgres:/var/lib/postgresql/data'
Allows to specify how properties of existing containers are compared with module options to decide whether the container should be recreated / updated or not.
docker_container_dependencytrack_frontend_comparisons:
image: strict
env: strict
volumes: strict
Dictionery of key,value pairs for docker environment variables to configure dependencytrackdb.
docker_container_dependencytrack_frontend_env:
API_BASE_URL: '{{ docker_container_dependencytrack_api_base_url }}'
Repository path and tag used to create the container. If an image is not found or pull is true, the image will be pulled from the registry. If no tag is included, latest will be used.
docker_container_dependencytrack_frontend_image: '{{ docker_image_dependencytrack_frontend_name
}}'
Dictionary of key value pairs for container labels.
Example:
docker_container_dependencytrack_frontend_labels:
traefik.enable: "true"
docker_container_dependencytrack_frontend_labels: {}
Name for the container
docker_container_dependencytrack_frontend_name: dependencytrack_frontend
List of networks the container belongs to.
docker_container_dependencytrack_frontend_networks:
- name: '{{ docker_network_dependencytrack_frontend_name }}'
List of ports to publish from the container to the host.
docker_container_dependencytrack_frontend_ports:
- 8080:8080
Volume mount host directory, where Treafik config files are stored.
docker_container_dependencytrack_frontend_volume_dir: '{{ docker_container__base__volume_dir
}}/{{ docker_container_dependencytrack_name }}'
List of volumes to mount within the container.
docker_container_dependencytrack_frontend_volumes: []
docker_container_dependencytrack_name: dependencytrack
Enable restic backup for the container's mounted volumes.
docker_container_dependencytrack_restic_enable: false
Retention settions for restic forget
after the restic backup
.
docker_container_dependencytrack_restic_retention:
keep_last: 1
keep_daily: 7
keep_weekly: 4
Minio S3 bucket name for restic backup storage.
docker_container_dependencytrack_restic_s3_bucket_name: restic-{{ docker_container_dependencytrack_name
}}
Minio S3 endpoint for restic backup storage.
Example:
docker_container__base__restic_s3_endpoint: "https://minio.{{ dns_domain }}"
docker_container_dependencytrack_restic_s3_endpoint: "{{ docker_container__base__restic_s3_endpoint }}"
docker_container_dependencytrack_restic_s3_endpoint: '{{ docker_container__base__restic_s3_endpoint
}}'
Minio S3 repo URL for restic backup storage.
docker_container_dependencytrack_restic_s3_repo: s3:{{ docker_container_dependencytrack_restic_s3_endpoint
}}/{{ docker_container_dependencytrack_restic_s3_bucket_name }}
Minio S3 repo access key for restic backup storage.
docker_container_dependencytrack_restic_s3_repo_access_key: '{{ docker_container__base__restic_s3_repo_access_key
}}'
Minio S3 repo password for restic backup storage.
docker_container_dependencytrack_restic_s3_repo_password: '{{ docker_container__base__restic_s3_repo_password
}}'
Minio S3 repo secret key for restic backup storage.
docker_container_dependencytrack_restic_s3_repo_secret_key: '{{ docker_container__base__restic_s3_repo_secret_key
}}'
Tag for the restic backup
command
docker_container_dependencytrack_restic_tag: '{{ docker_container_dependencytrack_name
}}'
docker_container_dependencytrack_volume_dir: '{{ docker_container__base__volume_dir
}}/{{ docker_container_dependencytrack_name }}'
Repository path and tag for the container image.
docker_image_dependencytrack_apiserver_name: dependencytrack/apiserver
Indicate to always pull the docker image.
docker_image_dependencytrack_apiserver_pull: false
Repository path and tag for the container image.
docker_image_dependencytrack_db_name: postgres:14.7-alpine
Indicate to always pull the docker image.
docker_image_dependencytrack_db_pull: false
Repository path and tag for the container image.
docker_image_dependencytrack_frontend_name: dependencytrack/frontend
Indicate to always pull the docker image.
docker_image_dependencytrack_frontend_pull: false
Name of the docker network created for dependencytrack.
docker_network_dependencytrack_apiserver_name: '{{ docker_container_dependencytrack_name
}}_backend'
Name of the docker network created for dependencytrackdb.
docker_network_dependencytrack_db_name: '{{ docker_container_dependencytrack_name
}}_backend'
Name of the docker network created for dependencytrack_frontend.
docker_network_dependencytrack_frontend_name: '{{ docker_container_dependencytrack_name
}}_backend'
docker_network_dependencytrack_name: '{{ docker_container_dependencytrack_name }}_backend'
docker-container-backup-all
Backup all containers' volume mounts.
docker-container-backup-dependencytrack
Backup dependencytrack volume mounts.
docker-container-backup-init-all
Run init backup task for all container.
docker-container-backup-init-dependencytrack
Run init backup task for dependencytrack if restic is enabled.
docker-container-backup-list-all
List all containers' backups.
docker-container-backup-list-dependencytrack
List dependencytrack backups.
docker-container-prereq-all
Ensure all pre-requisites are installed
docker-container-prereq-dependencytrack
Ensure all pre-requisites for dependencytrack are installed
docker-container-purge-all
Remove all containers and delete volume mounts.
docker-container-purge-dependencytrack
Remove dependencytrack and delete volume mounts.
docker-container-remove-all
Remove all containers.
docker-container-remove-dependencytrack
Remove dependencytrack.
docker-container-restore-all
Run restic restore for all restic enabled containers.
docker-container-restore-dependencytrack
Run restic restore for dependencytrack if restic is enabled.
docker-container-setup-all
Run setup task for all containers.
docker-container-setup-dependencytrack
Run setup task for dependencytrack.
never
None.
license (GPL-2.0-or-later, MIT, etc)
andif888