forked from rawmind0/service-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
156 lines (155 loc) · 3.83 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
version: '2'
services:
harbor-setupwrapper:
image: mreferre/harbor-setupwrapper
container_name: harbor-setupwrapper
environment:
- HARBORHOSTNAME=${harbor_fqdn}
- HARBOR_ADMIN_PASSWORD=${harbor_pass}
volumes:
- /etc/registry
- /etc/ui
- /etc/jobservice
- /etc/nginx
- /configdb
- /configui
- /configjobservice
command: ["/harbor/harbor-setupwrapper.sh"]
network_mode: "none"
labels:
io.rancher.container.hostname_override: container_name
io.rancher.container.start_once: 'true'
log:
image: vmware/harbor-log:0.5.0
container_name: harbor-log
restart: always
volumes:
- /var/log/harbor/:/var/log/docker/
ports:
- 1514:514
labels:
io.rancher.scheduler.global: 'true'
io.rancher.scheduler.affinity:host_label: harbor-log=true
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.container.hostname_override: container_name
registry:
image: library/registry:2.5.0
container_name: registry
restart: always
volumes:
- /data/registry:/storage
volumes_from:
- harbor-setupwrapper
environment:
- GODEBUG=netdns=cgo
command:
["serve", "/etc/registry/config.yml"]
depends_on:
- log
logging:
driver: "syslog"
options:
syslog-address: "tcp://127.0.0.1:1514"
tag: "registry"
labels:
io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: harbor-setupwrapper
mysql:
image: vmware/harbor-db:0.5.0
container_name: harbor-db
restart: always
volumes:
- /data/database:/var/lib/mysql
volumes_from:
- harbor-setupwrapper
depends_on:
- log
logging:
driver: "syslog"
options:
syslog-address: "tcp://127.0.0.1:1514"
tag: "mysql"
entrypoint:
- /bin/sh
- -c
command:
- /configdb/entrypointdb.sh
labels:
io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: harbor-setupwrapper
ui:
image: vmware/harbor-ui:0.5.0
container_name: harbor-ui
restart: always
volumes:
- /data:/harbor_storage
volumes_from:
- harbor-setupwrapper
depends_on:
- log
logging:
driver: "syslog"
options:
syslog-address: "tcp://127.0.0.1:1514"
tag: "ui"
entrypoint:
- /bin/sh
- -c
command:
- /configui/entrypointui.sh
external_links:
- registry
- mysql
labels:
io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: harbor-setupwrapper
jobservice:
image: vmware/harbor-jobservice:0.5.0
container_name: harbor-jobservice
restart: always
volumes:
- /data/job_logs:/var/log/jobs
volumes_from:
- harbor-setupwrapper
external_links:
- registry:registry
- ui:ui
logging:
driver: "syslog"
options:
syslog-address: "tcp://127.0.0.1:1514"
tag: "jobservice"
entrypoint:
- /bin/sh
- -c
command:
- /configjobservice/entrypointjobservice.sh
external_links:
- registry
- ui
- mysql
labels:
io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: harbor-setupwrapper
proxy:
image: nginx:1.11.5
container_name: nginx
restart: always
volumes_from:
- harbor-setupwrapper
ports:
- 80:80
- 443:443
depends_on:
- log
external_links:
- registry
- ui
logging:
driver: "syslog"
options:
syslog-address: "tcp://127.0.0.1:1514"
tag: "proxy"
labels:
io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: harbor-setupwrapper