harbor/tests/docker-compose.test.yml

24 lines
498 B
YAML
Raw Normal View History

2016-08-08 10:40:14 +02:00
version: '2'
services:
registry:
2016-12-15 04:32:21 +01:00
image: library/registry:2.5.1
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:
["serve", "/etc/docker/registry/config.yml"]
2016-08-08 10:40:14 +02:00
mysql:
2016-10-19 08:32:00 +02:00
build: ./common/db/
2016-08-08 10:40:14 +02:00
restart: always
volumes:
- /data/database:/var/lib/mysql
env_file:
2016-10-19 08:32:00 +02:00
- ./common/config/db/env
2016-08-08 10:40:14 +02:00
ports:
- 3306:3306