harbor/make/docker-compose.clair.yml

52 lines
1.0 KiB
YAML
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-06-14 11:22:26 +02:00
image: postgres:9.6.3
restart: always
depends_on:
- log
env_file:
./common/config/clair/postgres_env
volumes:
- /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-06-13 11:13:24 +02:00
image: quay.io/coreos/clair:v2.0.0
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