2016-04-01 12:54:21 +02:00
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
log:
|
2018-08-10 08:16:59 +02:00
|
|
|
image: goharbor/harbor-log:__version__
|
2016-10-19 08:32:00 +02:00
|
|
|
container_name: harbor-log
|
2016-07-14 08:19:36 +02:00
|
|
|
restart: always
|
2018-10-17 08:27:25 +02:00
|
|
|
dns_search: .
|
2018-11-22 09:21:04 +01:00
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- CHOWN
|
|
|
|
- DAC_OVERRIDE
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
2016-04-01 12:54:21 +02:00
|
|
|
volumes:
|
2017-03-01 17:08:51 +01:00
|
|
|
- /var/log/harbor/:/var/log/docker/:z
|
2017-11-08 06:07:27 +01:00
|
|
|
- ./common/config/log/:/etc/logrotate.d/:z
|
2016-04-01 12:54:21 +02:00
|
|
|
ports:
|
2017-11-02 04:51:32 +01:00
|
|
|
- 127.0.0.1:1514:10514
|
2017-02-16 07:51:21 +01:00
|
|
|
networks:
|
|
|
|
- harbor
|
2016-04-01 12:54:21 +02:00
|
|
|
registry:
|
2018-08-10 08:16:59 +02:00
|
|
|
image: goharbor/registry-photon:__reg_version__
|
2016-10-19 08:32:00 +02:00
|
|
|
container_name: registry
|
2016-07-14 08:19:36 +02:00
|
|
|
restart: always
|
2018-11-22 09:21:04 +01:00
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- CHOWN
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
2016-04-01 12:54:21 +02:00
|
|
|
volumes:
|
2017-03-01 17:08:51 +01:00
|
|
|
- /data/registry:/storage:z
|
|
|
|
- ./common/config/registry/:/etc/registry/:z
|
2018-11-09 08:02:59 +01:00
|
|
|
- ./common/config/custom-ca-bundle.crt:/harbor_cust_cert/custom-ca-bundle.crt:z
|
2017-02-16 07:51:21 +01:00
|
|
|
networks:
|
|
|
|
- harbor
|
2018-10-17 08:27:25 +02:00
|
|
|
dns_search: .
|
2016-04-01 12:54:21 +02:00
|
|
|
depends_on:
|
|
|
|
- log
|
|
|
|
logging:
|
|
|
|
driver: "syslog"
|
|
|
|
options:
|
|
|
|
syslog-address: "tcp://127.0.0.1:1514"
|
2016-07-10 12:54:08 +02:00
|
|
|
tag: "registry"
|
2018-07-16 10:50:28 +02:00
|
|
|
registryctl:
|
2018-08-10 08:16:59 +02:00
|
|
|
image: goharbor/harbor-registryctl:__version__
|
2018-07-16 10:50:28 +02:00
|
|
|
container_name: registryctl
|
|
|
|
env_file:
|
|
|
|
- ./common/config/registryctl/env
|
|
|
|
restart: always
|
2018-11-22 09:21:04 +01:00
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- CHOWN
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
2018-07-16 10:50:28 +02:00
|
|
|
volumes:
|
|
|
|
- /data/registry:/storage:z
|
|
|
|
- ./common/config/registry/:/etc/registry/:z
|
|
|
|
- ./common/config/registryctl/config.yml:/etc/registryctl/config.yml:z
|
|
|
|
networks:
|
|
|
|
- harbor
|
2018-10-17 08:27:25 +02:00
|
|
|
dns_search: .
|
2018-07-16 10:50:28 +02:00
|
|
|
depends_on:
|
|
|
|
- log
|
|
|
|
logging:
|
|
|
|
driver: "syslog"
|
|
|
|
options:
|
|
|
|
syslog-address: "tcp://127.0.0.1:1514"
|
|
|
|
tag: "registryctl"
|
2018-04-27 11:27:12 +02:00
|
|
|
postgresql:
|
2018-08-10 08:16:59 +02:00
|
|
|
image: goharbor/harbor-db:__version__
|
2016-10-19 08:32:00 +02:00
|
|
|
container_name: harbor-db
|
2016-07-14 08:19:36 +02:00
|
|
|
restart: always
|
2018-11-22 09:21:04 +01:00
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- CHOWN
|
|
|
|
- DAC_OVERRIDE
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
2016-04-01 12:54:21 +02:00
|
|
|
volumes:
|
2018-04-27 11:27:12 +02:00
|
|
|
- /data/database:/var/lib/postgresql/data:z
|
2017-02-16 07:51:21 +01:00
|
|
|
networks:
|
|
|
|
- harbor
|
2018-10-17 08:27:25 +02:00
|
|
|
dns_search: .
|
2016-04-01 12:54:21 +02:00
|
|
|
env_file:
|
2016-10-19 08:32:00 +02:00
|
|
|
- ./common/config/db/env
|
2016-04-01 12:54:21 +02:00
|
|
|
depends_on:
|
|
|
|
- log
|
|
|
|
logging:
|
|
|
|
driver: "syslog"
|
|
|
|
options:
|
|
|
|
syslog-address: "tcp://127.0.0.1:1514"
|
2018-04-27 11:27:12 +02:00
|
|
|
tag: "postgresql"
|
2018-09-12 08:38:29 +02:00
|
|
|
core:
|
|
|
|
image: goharbor/harbor-core:__version__
|
|
|
|
container_name: harbor-core
|
2016-04-01 12:54:21 +02:00
|
|
|
env_file:
|
2018-09-12 08:38:29 +02:00
|
|
|
- ./common/config/core/env
|
2019-02-22 09:34:26 +01:00
|
|
|
- ./common/config/core/config_env
|
2016-07-14 08:19:36 +02:00
|
|
|
restart: always
|
2018-11-22 09:21:04 +01:00
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
2016-04-01 12:54:21 +02:00
|
|
|
volumes:
|
2018-09-12 08:38:29 +02:00
|
|
|
- ./common/config/core/app.conf:/etc/core/app.conf:z
|
|
|
|
- ./common/config/core/private_key.pem:/etc/core/private_key.pem:z
|
|
|
|
- ./common/config/core/certificates/:/etc/core/certificates/:z
|
|
|
|
- /data/secretkey:/etc/core/key:z
|
|
|
|
- /data/ca_download/:/etc/core/ca/:z
|
|
|
|
- /data/psc/:/etc/core/token/:z
|
2018-10-10 11:10:56 +02:00
|
|
|
- /data/:/data/:z
|
2017-02-16 07:51:21 +01:00
|
|
|
networks:
|
|
|
|
- harbor
|
2018-10-17 08:27:25 +02:00
|
|
|
dns_search: .
|
2016-04-01 12:54:21 +02:00
|
|
|
depends_on:
|
|
|
|
- log
|
2016-12-30 11:04:01 +01:00
|
|
|
- registry
|
2016-04-01 12:54:21 +02:00
|
|
|
logging:
|
|
|
|
driver: "syslog"
|
|
|
|
options:
|
|
|
|
syslog-address: "tcp://127.0.0.1:1514"
|
2018-09-12 08:38:29 +02:00
|
|
|
tag: "core"
|
2018-09-04 12:14:40 +02:00
|
|
|
portal:
|
|
|
|
image: goharbor/harbor-portal:__version__
|
|
|
|
container_name: harbor-portal
|
|
|
|
restart: always
|
2018-11-22 09:21:04 +01:00
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- CHOWN
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
|
|
|
- NET_BIND_SERVICE
|
2018-09-04 12:14:40 +02:00
|
|
|
networks:
|
|
|
|
- harbor
|
2018-10-17 08:27:25 +02:00
|
|
|
dns_search: .
|
2018-09-13 05:00:21 +02:00
|
|
|
depends_on:
|
|
|
|
- log
|
2018-09-12 08:38:29 +02:00
|
|
|
- core
|
2018-09-04 12:14:40 +02:00
|
|
|
logging:
|
|
|
|
driver: "syslog"
|
2018-09-05 09:48:16 +02:00
|
|
|
options:
|
2018-09-04 12:14:40 +02:00
|
|
|
syslog-address: "tcp://127.0.0.1:1514"
|
2018-09-05 09:48:16 +02:00
|
|
|
tag: "portal"
|
2018-09-04 12:14:40 +02:00
|
|
|
|
2016-05-27 10:21:32 +02:00
|
|
|
jobservice:
|
2018-08-10 08:16:59 +02:00
|
|
|
image: goharbor/harbor-jobservice:__version__
|
2016-10-19 08:32:00 +02:00
|
|
|
container_name: harbor-jobservice
|
2016-05-27 10:21:32 +02:00
|
|
|
env_file:
|
2016-10-19 08:32:00 +02:00
|
|
|
- ./common/config/jobservice/env
|
2016-07-14 08:19:36 +02:00
|
|
|
restart: always
|
2018-11-22 09:21:04 +01:00
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- CHOWN
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
2016-06-28 11:05:38 +02:00
|
|
|
volumes:
|
2017-03-01 17:08:51 +01:00
|
|
|
- /data/job_logs:/var/log/jobs:z
|
2018-03-22 12:48:22 +01:00
|
|
|
- ./common/config/jobservice/config.yml:/etc/jobservice/config.yml:z
|
2017-02-16 07:51:21 +01:00
|
|
|
networks:
|
|
|
|
- harbor
|
2018-10-17 08:27:25 +02:00
|
|
|
dns_search: .
|
2016-05-27 10:21:32 +02:00
|
|
|
depends_on:
|
2018-03-30 07:22:10 +02:00
|
|
|
- redis
|
2018-09-12 08:38:29 +02:00
|
|
|
- core
|
2016-05-27 10:21:32 +02:00
|
|
|
logging:
|
|
|
|
driver: "syslog"
|
2018-09-12 08:38:29 +02:00
|
|
|
options:
|
2016-05-27 10:21:32 +02:00
|
|
|
syslog-address: "tcp://127.0.0.1:1514"
|
2016-07-10 12:54:08 +02:00
|
|
|
tag: "jobservice"
|
2018-03-30 07:22:10 +02:00
|
|
|
redis:
|
2018-08-10 08:16:59 +02:00
|
|
|
image: goharbor/redis-photon:__redis_version__
|
2018-03-30 07:22:10 +02:00
|
|
|
container_name: redis
|
|
|
|
restart: always
|
2018-11-22 09:21:04 +01:00
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- CHOWN
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
2018-03-30 07:22:10 +02:00
|
|
|
volumes:
|
2018-07-03 08:24:43 +02:00
|
|
|
- /data/redis:/var/lib/redis
|
2018-03-30 07:22:10 +02:00
|
|
|
networks:
|
|
|
|
- harbor
|
2018-10-17 08:27:25 +02:00
|
|
|
dns_search: .
|
2018-04-30 12:16:11 +02:00
|
|
|
depends_on:
|
|
|
|
- log
|
|
|
|
logging:
|
|
|
|
driver: "syslog"
|
2018-09-12 08:38:29 +02:00
|
|
|
options:
|
2018-04-30 12:16:11 +02:00
|
|
|
syslog-address: "tcp://127.0.0.1:1514"
|
|
|
|
tag: "redis"
|
2016-04-01 12:54:21 +02:00
|
|
|
proxy:
|
2018-09-05 09:48:16 +02:00
|
|
|
image: goharbor/nginx-photon:__version__
|
2016-10-19 08:32:00 +02:00
|
|
|
container_name: nginx
|
2016-07-14 08:19:36 +02:00
|
|
|
restart: always
|
2018-11-22 09:21:04 +01:00
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- CHOWN
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
|
|
|
- NET_BIND_SERVICE
|
2016-04-01 12:54:21 +02:00
|
|
|
volumes:
|
2017-03-01 17:08:51 +01:00
|
|
|
- ./common/config/nginx:/etc/nginx:z
|
2017-02-16 07:51:21 +01:00
|
|
|
networks:
|
|
|
|
- harbor
|
2018-10-17 08:27:25 +02:00
|
|
|
dns_search: .
|
2016-04-01 12:54:21 +02:00
|
|
|
ports:
|
|
|
|
- 80:80
|
2016-04-14 05:04:27 +02:00
|
|
|
- 443:443
|
2017-03-24 07:40:34 +01:00
|
|
|
- 4443:4443
|
2016-04-01 12:54:21 +02:00
|
|
|
depends_on:
|
2018-04-27 11:27:12 +02:00
|
|
|
- postgresql
|
2016-04-01 12:54:21 +02:00
|
|
|
- registry
|
2018-09-12 08:38:29 +02:00
|
|
|
- core
|
2018-09-05 09:48:16 +02:00
|
|
|
- portal
|
2016-04-01 12:54:21 +02:00
|
|
|
- log
|
|
|
|
logging:
|
|
|
|
driver: "syslog"
|
|
|
|
options:
|
|
|
|
syslog-address: "tcp://127.0.0.1:1514"
|
2016-07-10 12:54:08 +02:00
|
|
|
tag: "proxy"
|
2017-02-16 07:51:21 +01:00
|
|
|
networks:
|
|
|
|
harbor:
|
|
|
|
external: false
|
|
|
|
|