2016-03-09 07:45:47 +00:00
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
container_name: clair_postgres
|
|
|
|
image: postgres:latest
|
2016-11-22 11:52:25 +00:00
|
|
|
restart: unless-stopped
|
2016-03-09 07:45:47 +00:00
|
|
|
environment:
|
2016-03-09 17:20:20 +00:00
|
|
|
POSTGRES_PASSWORD: password
|
2016-03-09 07:45:47 +00:00
|
|
|
|
|
|
|
clair:
|
|
|
|
container_name: clair_clair
|
2016-06-14 20:15:55 +00:00
|
|
|
image: quay.io/coreos/clair:v1.2.2
|
2016-11-22 11:52:25 +00:00
|
|
|
restart: unless-stopped
|
2016-03-09 07:45:47 +00:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
ports:
|
|
|
|
- "6060-6061:6060-6061"
|
|
|
|
links:
|
2016-03-09 17:20:20 +00:00
|
|
|
- postgres
|
2016-03-09 07:45:47 +00:00
|
|
|
volumes:
|
|
|
|
- /tmp:/tmp
|
|
|
|
- ./clair_config:/config
|
|
|
|
command: [-config, /config/config.yaml]
|