Created
December 20, 2019 15:29
-
-
Save billglover/611c6dbc79ae1bdc4655008fa8a859a6 to your computer and use it in GitHub Desktop.
Get Clair up and running using Docker Compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clair: | |
database: | |
type: pgsql | |
options: | |
source: host=clair_postgres port=5432 user=postgres sslmode=disable statement_timeout=60000 | |
cachesize: 16384 | |
maxopenconnections: 10 | |
api: | |
addr: "0.0.0.0:6060" | |
healthaddr: "0.0.0.0:6061" | |
timeout: 900s | |
updater: | |
interval: 2h | |
enabledupdaters: | |
- debian | |
- ubuntu | |
- rhel | |
- oracle | |
- alpine | |
- suse | |
notifier: | |
attempts: 3 | |
renotifyinterval: 2h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
postgres: | |
container_name: clair_postgres | |
image: postgres:9.6 | |
restart: unless-stopped | |
ports: | |
- "5432:5432" | |
environment: | |
POSTGRES_PASSWORD: "" | |
clair: | |
container_name: clair_clair | |
image: quay.io/coreos/clair:latest | |
restart: unless-stopped | |
ports: | |
- "6060-6061:6060-6061" | |
depends_on: | |
- postgres | |
volumes: | |
- /tmp:/tmp | |
- ./clair_config:/config | |
command: [-config, /config/config.yaml] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment