forked from DevOps/deploy.stack
chore(harbor): 更新 2.15.4 部署配置
移除 harbor-log 服务并改用 json-file 日志轮转 将 Redis 组件替换为 Valkey,并同步部署文档
This commit is contained in:
+33
-64
@@ -1,25 +1,6 @@
|
||||
services:
|
||||
log:
|
||||
image: goharbor/harbor-log:v2.14.1
|
||||
container_name: harbor-log
|
||||
restart: always
|
||||
cap_drop:
|
||||
- ALL
|
||||
cap_add:
|
||||
- CHOWN
|
||||
- DAC_OVERRIDE
|
||||
- SETGID
|
||||
- SETUID
|
||||
volumes:
|
||||
- /var/log/harbor/:/var/log/docker/:z
|
||||
- /data/harbor/common/config/log/logrotate.conf:/etc/logrotate.d/logrotate.conf
|
||||
- /data/harbor/common/config/log/rsyslog_docker.conf:/etc/rsyslog.d/rsyslog_docker.conf
|
||||
ports:
|
||||
- 127.0.0.1:1514:10514
|
||||
networks:
|
||||
- harbor
|
||||
registry:
|
||||
image: goharbor/registry-photon:v2.14.1
|
||||
image: goharbor/registry-photon:v2.15.4
|
||||
container_name: registry
|
||||
restart: always
|
||||
cap_drop:
|
||||
@@ -35,15 +16,13 @@ services:
|
||||
- /data/harbor/common/config/shared/trust-certificates:/harbor_cust_cert
|
||||
networks:
|
||||
- harbor
|
||||
depends_on:
|
||||
- log
|
||||
logging:
|
||||
driver: "syslog"
|
||||
driver: json-file
|
||||
options:
|
||||
syslog-address: "tcp://localhost:1514"
|
||||
tag: "registry"
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
registryctl:
|
||||
image: goharbor/harbor-registryctl:v2.14.1
|
||||
image: goharbor/harbor-registryctl:v2.15.4
|
||||
container_name: registryctl
|
||||
env_file:
|
||||
- /data/harbor/common/config/registryctl/env
|
||||
@@ -61,15 +40,13 @@ services:
|
||||
- /data/harbor/common/config/shared/trust-certificates:/harbor_cust_cert
|
||||
networks:
|
||||
- harbor
|
||||
depends_on:
|
||||
- log
|
||||
logging:
|
||||
driver: "syslog"
|
||||
driver: json-file
|
||||
options:
|
||||
syslog-address: "tcp://localhost:1514"
|
||||
tag: "registryctl"
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
postgresql:
|
||||
image: goharbor/harbor-db:v2.14.1
|
||||
image: goharbor/harbor-db:v2.15.4
|
||||
container_name: harbor-db
|
||||
restart: always
|
||||
cap_drop:
|
||||
@@ -85,16 +62,14 @@ services:
|
||||
harbor:
|
||||
env_file:
|
||||
- /data/harbor/common/config/db/env
|
||||
depends_on:
|
||||
- log
|
||||
logging:
|
||||
driver: "syslog"
|
||||
driver: json-file
|
||||
options:
|
||||
syslog-address: "tcp://localhost:1514"
|
||||
tag: "postgresql"
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
shm_size: '1gb'
|
||||
core:
|
||||
image: goharbor/harbor-core:v2.14.1
|
||||
image: goharbor/harbor-core:v2.15.4
|
||||
container_name: harbor-core
|
||||
env_file:
|
||||
- /data/harbor/common/config/core/env
|
||||
@@ -115,17 +90,16 @@ services:
|
||||
networks:
|
||||
harbor:
|
||||
depends_on:
|
||||
- log
|
||||
- registry
|
||||
- redis
|
||||
- postgresql
|
||||
logging:
|
||||
driver: "syslog"
|
||||
driver: json-file
|
||||
options:
|
||||
syslog-address: "tcp://localhost:1514"
|
||||
tag: "core"
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
portal:
|
||||
image: goharbor/harbor-portal:v2.14.1
|
||||
image: goharbor/harbor-portal:v2.15.4
|
||||
container_name: harbor-portal
|
||||
restart: always
|
||||
cap_drop:
|
||||
@@ -139,16 +113,14 @@ services:
|
||||
- /data/harbor/common/config/portal/nginx.conf:/etc/nginx/nginx.conf
|
||||
networks:
|
||||
- harbor
|
||||
depends_on:
|
||||
- log
|
||||
logging:
|
||||
driver: "syslog"
|
||||
driver: json-file
|
||||
options:
|
||||
syslog-address: "tcp://localhost:1514"
|
||||
tag: "portal"
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
jobservice:
|
||||
image: goharbor/harbor-jobservice:v2.14.1
|
||||
image: goharbor/harbor-jobservice:v2.15.4
|
||||
container_name: harbor-jobservice
|
||||
env_file:
|
||||
- /data/harbor/common/config/jobservice/env
|
||||
@@ -168,12 +140,12 @@ services:
|
||||
depends_on:
|
||||
- core
|
||||
logging:
|
||||
driver: "syslog"
|
||||
driver: json-file
|
||||
options:
|
||||
syslog-address: "tcp://localhost:1514"
|
||||
tag: "jobservice"
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
redis:
|
||||
image: goharbor/redis-photon:v2.14.1
|
||||
image: goharbor/valkey-photon:v2.15.4
|
||||
container_name: redis
|
||||
restart: always
|
||||
cap_drop:
|
||||
@@ -186,15 +158,13 @@ services:
|
||||
- /data/harbor/redis:/var/lib/redis
|
||||
networks:
|
||||
harbor:
|
||||
depends_on:
|
||||
- log
|
||||
logging:
|
||||
driver: "syslog"
|
||||
driver: json-file
|
||||
options:
|
||||
syslog-address: "tcp://localhost:1514"
|
||||
tag: "redis"
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
proxy:
|
||||
image: goharbor/nginx-photon:v2.14.1
|
||||
image: goharbor/nginx-photon:v2.15.4
|
||||
container_name: nginx
|
||||
restart: always
|
||||
cap_drop:
|
||||
@@ -216,12 +186,11 @@ services:
|
||||
- registry
|
||||
- core
|
||||
- portal
|
||||
- log
|
||||
logging:
|
||||
driver: "syslog"
|
||||
driver: json-file
|
||||
options:
|
||||
syslog-address: "tcp://localhost:1514"
|
||||
tag: "proxy"
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
networks:
|
||||
harbor:
|
||||
external: false
|
||||
external: false
|
||||
|
||||
Reference in New Issue
Block a user