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-10-12 11:08:47 +02:00
|
|
|
image: vmware/postgresql:9.6.5-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-11-03 11:06:27 +01:00
|
|
|
image: vmware/clair:v2.0.1-photon
|
2017-04-27 13:01:45 +02:00
|
|
|
restart: always
|
2017-08-02 07:11:26 +02:00
|
|
|
cpu_quota: 150000
|
2017-04-27 13:01:45 +02:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
volumes:
|
|
|
|
- ./common/config/clair:/config
|
|
|
|
logging:
|
|
|
|
driver: "syslog"
|
|
|
|
options:
|
|
|
|
syslog-address: "tcp://127.0.0.1:1514"
|
|
|
|
tag: "clair"
|
|
|
|
networks:
|
|
|
|
harbor-clair:
|
|
|
|
external: false
|