2017-04-27 13:01:45 +02:00
|
|
|
version: '2'
|
|
|
|
services:
|
2018-09-12 08:38:29 +02:00
|
|
|
core:
|
2017-04-27 13:01:45 +02:00
|
|
|
networks:
|
|
|
|
harbor-clair:
|
|
|
|
aliases:
|
2018-09-12 08:38:29 +02:00
|
|
|
- harbor-core
|
2017-04-27 13:01:45 +02:00
|
|
|
jobservice:
|
|
|
|
networks:
|
|
|
|
- harbor-clair
|
2017-06-13 15:46:52 +02:00
|
|
|
registry:
|
|
|
|
networks:
|
|
|
|
- harbor-clair
|
2018-04-27 11:27:12 +02:00
|
|
|
postgresql:
|
2017-04-27 13:01:45 +02:00
|
|
|
networks:
|
|
|
|
harbor-clair:
|
|
|
|
aliases:
|
2018-04-27 11:27:12 +02:00
|
|
|
- harbor-db
|
2017-04-27 13:01:45 +02:00
|
|
|
clair:
|
|
|
|
networks:
|
|
|
|
- harbor-clair
|
|
|
|
container_name: clair
|
2018-08-10 08:16:59 +02:00
|
|
|
image: goharbor/clair-photon:__clair_version__
|
2017-04-27 13:01:45 +02:00
|
|
|
restart: always
|
2018-11-22 09:21:04 +01:00
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- DAC_OVERRIDE
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
2018-07-03 05:23:56 +02:00
|
|
|
cpu_quota: 50000
|
2018-10-17 08:27:25 +02:00
|
|
|
dns_search: .
|
2017-04-27 13:01:45 +02:00
|
|
|
depends_on:
|
2018-04-27 11:27:12 +02:00
|
|
|
- postgresql
|
2017-04-27 13:01:45 +02:00
|
|
|
volumes:
|
2018-04-08 17:43:45 +02:00
|
|
|
- ./common/config/clair/config.yaml:/etc/clair/config.yaml:z
|
2018-11-09 08:02:59 +01:00
|
|
|
- ./common/config/custom-ca-bundle.crt:/harbor_cust_cert/custom-ca-bundle.crt:z
|
2017-04-27 13:01:45 +02:00
|
|
|
logging:
|
|
|
|
driver: "syslog"
|
|
|
|
options:
|
|
|
|
syslog-address: "tcp://127.0.0.1:1514"
|
|
|
|
tag: "clair"
|
2018-03-28 12:49:40 +02:00
|
|
|
env_file:
|
|
|
|
./common/config/clair/clair_env
|
2017-04-27 13:01:45 +02:00
|
|
|
networks:
|
|
|
|
harbor-clair:
|
|
|
|
external: false
|