harbor/tests/docker-compose.test.yml
2016-12-15 16:50:50 +08:00

24 lines
498 B
YAML

version: '2'
services:
registry:
image: library/registry:2.5.1
restart: always
volumes:
- /data/registry:/storage
- ./common/config/registry/:/etc/registry/
environment:
- GODEBUG=netdns=cgo
ports:
- 5000:5000
command:
["serve", "/etc/docker/registry/config.yml"]
mysql:
build: ./common/db/
restart: always
volumes:
- /data/database:/var/lib/mysql
env_file:
- ./common/config/db/env
ports:
- 3306:3306