mirror of
https://github.com/bitnami/containers.git
synced 2026-04-01 06:48:13 +08:00
108 lines
2.9 KiB
YAML
108 lines
2.9 KiB
YAML
version: '2'
|
|
|
|
services:
|
|
registry:
|
|
image: bitnami/harbor-registry:1-ol-7
|
|
volumes:
|
|
- registry_data:/storage
|
|
- ./config/registry/:/etc/registry/:ro
|
|
registryctl:
|
|
image: bitnami/harbor-registryctl:1-ol-7
|
|
environment:
|
|
- CORE_SECRET=CHANGEME
|
|
- JOBSERVICE_SECRET=CHANGEME
|
|
volumes:
|
|
- registry_data:/storage
|
|
- ./config/registry/:/etc/registry/:ro
|
|
- ./config/registryctl/config.yml:/etc/registryctl/config.yml:ro
|
|
postgresql:
|
|
image: bitnami/postgresql:11-ol-7
|
|
container_name: harbor-db
|
|
environment:
|
|
- POSTGRESQL_PASSWORD=bitnami
|
|
- POSTGRESQL_DATABASE=registry
|
|
volumes:
|
|
- postgresql_data:/bitnami/postgresql
|
|
core:
|
|
image: bitnami/harbor-core:1-ol-7
|
|
container_name: harbor-core
|
|
depends_on:
|
|
- registry
|
|
environment:
|
|
- CORE_KEY=change-this-key
|
|
- _REDIS_URL=redis:6379,100,
|
|
- SYNC_REGISTRY=false
|
|
- CHART_CACHE_DRIVER=redis
|
|
- _REDIS_URL_REG=redis://redis:6379/1
|
|
- PORT=8080
|
|
- LOG_LEVEL=info
|
|
- EXT_ENDPOINT=http://reg.mydomain.com
|
|
- DATABASE_TYPE=postgresql
|
|
- POSTGRESQL_HOST=postgresql
|
|
- POSTGRESQL_PORT=5432
|
|
- POSTGRESQL_DATABASE=registry
|
|
- POSTGRESQL_USERNAME=postgres
|
|
- POSTGRESQL_PASSWORD=bitnami
|
|
- POSTGRESQL_SSLMODE=disable
|
|
- REGISTRY_URL=http://registry:5000
|
|
- TOKEN_SERVICE_URL=http://core:8080/service/token
|
|
- HARBOR_ADMIN_PASSWORD=bitnami
|
|
- CORE_SECRET=CHANGEME
|
|
- JOBSERVICE_SECRET=CHANGEME
|
|
- ADMIRAL_URL=
|
|
- WITH_NOTARY=False
|
|
- WITH_CLAIR=False
|
|
- WITH_CHARTMUSEUM=False
|
|
- CORE_URL=http://core:8080
|
|
- JOBSERVICE_URL=http://jobservice:8080
|
|
- REGISTRY_STORAGE_PROVIDER_NAME=filesystem
|
|
- READ_ONLY=false
|
|
- RELOAD_KEY=
|
|
volumes:
|
|
- core_data:/data
|
|
- ./config/core/app.conf:/etc/core/app.conf:ro
|
|
- ./config/core/private_key.pem:/etc/core/private_key.pem:ro
|
|
portal:
|
|
image: bitnami/harbor-portal:1-ol-7
|
|
container_name: harbor-portal
|
|
depends_on:
|
|
- core
|
|
jobservice:
|
|
image: bitnami/harbor-jobservice:1-ol-7
|
|
container_name: harbor-jobservice
|
|
depends_on:
|
|
- redis
|
|
- core
|
|
environment:
|
|
- CORE_SECRET=CHANGEME
|
|
- JOBSERVICE_SECRET=CHANGEME
|
|
- CORE_URL=http://core:8080
|
|
volumes:
|
|
- jobservice_data:/var/log/jobs
|
|
- ./config/jobservice/config.yml:/etc/jobservice/config.yml:ro
|
|
redis:
|
|
image: bitnami/redis:5.0-ol-7
|
|
environment:
|
|
- ALLOW_EMPTY_PASSWORD=yes
|
|
harbor-nginx:
|
|
image: bitnami/nginx:1.16-ol-7
|
|
container_name: nginx
|
|
volumes:
|
|
- ./config/proxy/nginx.conf:/opt/bitnami/nginx/conf/nginx.conf:ro
|
|
ports:
|
|
- '80:8080'
|
|
depends_on:
|
|
- postgresql
|
|
- registry
|
|
- core
|
|
- portal
|
|
volumes:
|
|
registry_data:
|
|
driver: local
|
|
core_data:
|
|
driver: local
|
|
jobservice_data:
|
|
driver: local
|
|
postgresql_data:
|
|
driver: local
|