harbor/tests/docker-compose.test.yml

44 lines
1001 B
YAML
Raw Normal View History

2016-08-08 10:40:14 +02:00
version: '2'
services:
registry:
image: goharbor/registry-photon:__reg_version__
2016-08-08 10:40:14 +02:00
restart: always
volumes:
- /data/registry:/storage
2016-10-19 08:32:00 +02:00
- ./common/config/registry/:/etc/registry/
2016-08-08 10:40:14 +02:00
environment:
- GODEBUG=netdns=cgo
ports:
- 5000:5000
command:
2017-12-09 19:53:12 +01:00
["serve", "/etc/registry/config.yml"]
postgres:
image: goharbor/harbor-db:__version__
2016-08-08 10:40:14 +02:00
restart: always
volumes:
- /data/database:/var/lib/postgresql/data:z
2016-08-08 10:40:14 +02:00
env_file:
2016-10-19 08:32:00 +02:00
- ./common/config/db/env
2016-08-08 10:40:14 +02:00
ports:
- 5432:5432
2017-01-12 11:29:02 +01:00
adminserver:
build:
context: ../
dockerfile: make/dev/adminserver/Dockerfile
env_file:
- ./common/config/adminserver/env
restart: always
volumes:
2017-04-07 03:14:41 +02:00
- /data/config/:/etc/adminserver/config/
2017-02-22 06:22:52 +01:00
- /data/secretkey:/etc/adminserver/key
2017-03-21 05:35:46 +01:00
- /data/:/data/
2017-01-12 11:29:02 +01:00
ports:
- 8888:8080
redis:
image: goharbor/redis-photon:4.0
restart: always
volumes:
- /data/redis:/data
ports:
- 6379:6379