mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-17 07:45:24 +01:00
fefb955cfe
Drop all capabilities when starting containers by modifying docker-compose files to avoid security issue Signed-off-by: Wenkai Yin <yinw@vmware.com>
48 lines
979 B
Smarty
48 lines
979 B
Smarty
version: '2'
|
|
services:
|
|
core:
|
|
networks:
|
|
harbor-clair:
|
|
aliases:
|
|
- harbor-core
|
|
jobservice:
|
|
networks:
|
|
- harbor-clair
|
|
registry:
|
|
networks:
|
|
- harbor-clair
|
|
postgresql:
|
|
networks:
|
|
harbor-clair:
|
|
aliases:
|
|
- harbor-db
|
|
clair:
|
|
networks:
|
|
- harbor-clair
|
|
container_name: clair
|
|
image: goharbor/clair-photon:__clair_version__
|
|
restart: always
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- DAC_OVERRIDE
|
|
- SETGID
|
|
- SETUID
|
|
cpu_quota: 50000
|
|
dns_search: .
|
|
depends_on:
|
|
- postgresql
|
|
volumes:
|
|
- ./common/config/clair/config.yaml:/etc/clair/config.yaml:z
|
|
- ./common/config/custom-ca-bundle.crt:/harbor_cust_cert/custom-ca-bundle.crt:z
|
|
logging:
|
|
driver: "syslog"
|
|
options:
|
|
syslog-address: "tcp://127.0.0.1:1514"
|
|
tag: "clair"
|
|
env_file:
|
|
./common/config/clair/clair_env
|
|
networks:
|
|
harbor-clair:
|
|
external: false
|