harbor/make/docker-compose.clair.tpl

53 lines
1.1 KiB
Smarty
Raw Normal View History

version: '2'
services:
ui:
networks:
harbor-clair:
aliases:
- harbor-ui
jobservice:
networks:
- harbor-clair
registry:
networks:
- harbor-clair
postgres:
networks:
harbor-clair:
aliases:
- postgres
container_name: clair-db
2017-12-09 19:53:12 +01:00
image: vmware/postgresql-photon:__postgresql_version__
restart: always
depends_on:
- log
env_file:
./common/config/clair/postgres_env
volumes:
2018-01-30 07:25:43 +01:00
- ./common/config/clair/postgresql-init.d/:/docker-entrypoint-initdb.d:z
- /data/clair-db:/var/lib/postgresql/data:z
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__
restart: always
cpu_quota: 150000
depends_on:
- postgres
volumes:
2018-01-30 07:25:43 +01:00
- ./common/config/clair:/config:z
logging:
driver: "syslog"
options:
syslog-address: "tcp://127.0.0.1:1514"
tag: "clair"
networks:
harbor-clair:
external: false