2017-04-27 13:01:45 +02:00
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
ui:
|
|
|
|
networks:
|
|
|
|
harbor-clair:
|
|
|
|
aliases:
|
|
|
|
- harbor-ui
|
|
|
|
jobservice:
|
|
|
|
networks:
|
|
|
|
- harbor-clair
|
2017-06-13 15:46:52 +02:00
|
|
|
registry:
|
|
|
|
networks:
|
|
|
|
- harbor-clair
|
2017-04-27 13:01:45 +02:00
|
|
|
postgres:
|
|
|
|
networks:
|
|
|
|
harbor-clair:
|
|
|
|
aliases:
|
|
|
|
- postgres
|
|
|
|
container_name: clair-db
|
2017-06-26 09:31:34 +02:00
|
|
|
image: vmware/postgresql:9.6.3-photon
|
2017-04-27 13:01:45 +02:00
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- log
|
|
|
|
env_file:
|
|
|
|
./common/config/clair/postgres_env
|
|
|
|
volumes:
|
2017-06-28 09:45:16 +02:00
|
|
|
- ./common/config/clair/postgresql-init.d/:/docker-entrypoint-initdb.d
|
2017-04-27 13:01:45 +02:00
|
|
|
- /data/clair-db:/var/lib/postgresql/data
|
|
|
|
logging:
|
|
|
|
driver: "syslog"
|
|
|
|
options:
|
|
|
|
syslog-address: "tcp://127.0.0.1:1514"
|
|
|
|
tag: "clair-db"
|
|
|
|
clair:
|
|
|
|
networks:
|
|
|
|
- harbor-clair
|
|
|
|
container_name: clair
|
2017-07-11 06:00:44 +02:00
|
|
|
image: vmware/clair:v2.0.1-photon
|
2017-04-27 13:01:45 +02:00
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
volumes:
|
|
|
|
- ./common/config/clair:/config
|
|
|
|
command: [-config, /config/config.yaml]
|
|
|
|
logging:
|
|
|
|
driver: "syslog"
|
|
|
|
options:
|
|
|
|
syslog-address: "tcp://127.0.0.1:1514"
|
|
|
|
tag: "clair"
|
|
|
|
networks:
|
|
|
|
harbor-clair:
|
|
|
|
external: false
|