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-12-09 19:53:12 +01:00
|
|
|
image: vmware/postgresql-photon:__postgresql_version__
|
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-12-09 19:53:12 +01:00
|
|
|
image: vmware/clair-photon:__clair_version__
|
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
|