harbor/tests/docker-compose.test.yml
Ziming 9440df1090
feat(cicd) fix redis container version for test (#11105)
Signed-off-by: Ziming Zhang <zziming@vmware.com>
2020-03-27 10:54:52 +08:00

30 lines
696 B
YAML

version: '2'
services:
registry:
image: goharbor/registry-photon:__version__
restart: always
volumes:
- /data/registry:/storage
- ./common/config/registry/:/etc/registry/
- /etc/core/ca/ca.crt:/etc/registry/root.crt
ports:
- 5000:5000
command:
["serve", "/etc/registry/config.yml"]
postgres:
image: goharbor/harbor-db:__version__
restart: always
volumes:
- /data/database:/var/lib/postgresql/data:z
env_file:
- ./common/config/db/env
ports:
- 5432:5432
redis:
image: goharbor/redis-photon:__version__
restart: always
volumes:
- /data/redis:/var/lib/redis
ports:
- 6379:6379