harbor/Deploy/docker-compose.yml

63 lines
1.2 KiB
YAML
Raw Normal View History

2016-02-01 12:59:10 +01:00
log:
build: ./log/
volumes:
- /var/log/harbor/:/var/log/docker/
ports:
- 1514:514
registry:
image: library/registry:2.3.0
2016-02-01 12:59:10 +01:00
volumes:
- /data/registry:/storage
- ./config/registry/:/etc/registry/
ports:
- 5001:5001
command:
/etc/registry/config.yml
links:
- log
log_driver: "syslog"
log_opt:
syslog-address: "tcp://127.0.0.1:1514"
2016-02-17 04:27:23 +01:00
syslog-tag: "registry"
2016-02-01 12:59:10 +01:00
mysql:
build: ./db/
volumes:
- /data/database:/var/lib/mysql
env_file:
- ./config/db/env
2016-02-01 12:59:10 +01:00
links:
- log
log_driver: "syslog"
log_opt:
syslog-address: "tcp://127.0.0.1:1514"
2016-02-17 04:27:23 +01:00
syslog-tag: "mysql"
2016-02-01 12:59:10 +01:00
ui:
build: ../
env_file:
- ./config/ui/env
volumes:
- ./config/ui/app.conf:/etc/ui/app.conf
- ./config/ui/private_key.pem:/etc/ui/private_key.pem
2016-02-01 12:59:10 +01:00
links:
2016-02-23 05:42:22 +01:00
- registry
- mysql
2016-02-01 12:59:10 +01:00
- log
log_driver: "syslog"
log_opt:
syslog-address: "tcp://127.0.0.1:1514"
2016-02-17 04:27:23 +01:00
syslog-tag: "ui"
2016-02-22 06:20:17 +01:00
proxy:
2016-02-01 12:59:10 +01:00
image: library/nginx:1.9
volumes:
- ./config/nginx:/etc/nginx
2016-02-01 12:59:10 +01:00
links:
2016-02-23 05:42:22 +01:00
- ui
- registry
2016-02-01 12:59:10 +01:00
- log
ports:
- 80:80
log_driver: "syslog"
log_opt:
syslog-address: "tcp://127.0.0.1:1514"
2016-02-17 04:27:23 +01:00
syslog-tag: "proxy"