mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-25 18:18:04 +01:00
37 lines
814 B
YAML
37 lines
814 B
YAML
version: '2'
|
|
services:
|
|
registry:
|
|
image: library/registry:2.6.0
|
|
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
|
|
adminserver:
|
|
build:
|
|
context: ../
|
|
dockerfile: make/dev/adminserver/Dockerfile
|
|
env_file:
|
|
- ./common/config/adminserver/env
|
|
restart: always
|
|
volumes:
|
|
- /data/config/:/etc/adminserver/
|
|
- /data/secretkey:/etc/adminserver/key
|
|
- /data/:/data/
|
|
ports:
|
|
- 8888:80
|