-
Notifications
You must be signed in to change notification settings - Fork 2
/
grua.yaml
146 lines (146 loc) · 3.11 KB
/
grua.yaml
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
global:
project: alf
volumepath: /var/lib/grua/volumes
base:
build: base
tag: marsbard/base
run: false
before:
- tomcat
tomcat:
build: tomcat
tag: marsbard/tomcat
run: false
########################################################################################
consul:
hostname: consul
build: consul
upwhen:
logmsg: "consul: New leader elected: "
options:
- "--expose=8300"
- "--expose=8500"
- "--expose=53"
volumes:
- config:/config
- data:/data
command: "-data-dir=/data -bootstrap-expect 1 -client 0.0.0.0"
registrator:
image: gliderlabs/registrator:latest
link:
- consul
volumes:
- /var/run/docker.sock:/tmp/docker.sock
before:
- postfix
- alfresco
- solr
- share
- mysql
- httpd
after:
- consul
command: "-internal consul://<% INSPECT consul {{ .NetworkSettings.IPAddress }} %>:8500"
alfresco:
build: alfresco
dns: <% INSPECT consul {{ .NetworkSettings.IPAddress }} %>
options:
- "--expose=2021"
- "--expose=7070"
- "--expose=8080"
# - "--add-host=alfresco.service.consul:127.0.0.1"
upwhen:
logmsg: "INFO: Server startup in "
timeout: 120
before:
- solr
- share
volumes:
- data:/data
- logs:/logs
share:
build: share
dns: <% INSPECT consul {{ .NetworkSettings.IPAddress }} %>
options:
- "--expose=8080"
volumes:
- data:/data
after:
- alfresco
upwhen:
logmsg: "INFO: Server startup in "
timeout: 60
after:
- solr
solr:
build: solr
options:
- "--expose=8443"
dns: <% INSPECT consul {{ .NetworkSettings.IPAddress }} %>
volumes:
- data:/data
- content:/content
- logs:/logs
upwhen:
logmsg: "INFO: Server startup in "
timeout: 60
httpd:
build: httpd
environment:
DOMAIN_NAME: <% ENV ALF_DOMAIN_NAME | localhost.local %>
options:
- "--expose=80"
- "--expose=443"
ports:
- "80:80"
- "443:443"
dns: <% INSPECT consul {{ .NetworkSettings.IPAddress }} %>
volumes:
- www:/usr/local/apache2/htdocs
- logs:/usr/local/apache2/logs
- ssl:/etc/ssl
- data:/data
upwhen:
logmsg: "start_threads: Using epoll"
logfile: logs/error.log
timeout: 60
after:
- share
mysql:
dns: <% INSPECT consul {{ .NetworkSettings.IPAddress }} %>
image: mysql:5.6
options:
- "--expose=3306"
volumes:
- data:/var/lib/mysql
environment:
MYSQL_DATABASE: <% ENV ALF_MYSQL_DATABASE | alfresco %>
MYSQL_USER: <% ENV ALF_MYSQL_USER | alfresco %>
MYSQL_PASSWORD: <% ENV ALF_MYSL_PASSWORD alfresco %>
MYSQL_ROOT_PASSWORD: <% ENV ALF_MYSQL_ROOT_PASSWORD alfresco %>
after:
- consul
before:
- alfresco
upwhen:
logmsg: "mysqld: ready for connections"
sleep: 2
postfix:
dns: <% INSPECT consul {{ .NetworkSettings.IPAddress }} %>
image: "catatnight/postfix"
options:
- "--expose=25"
environment:
maildomain: "alfresco.local"
smtp_user: "mailuser:password"
haveged:
image: harbur/haveged:1.7c-1
options:
- "--privileged"
before:
- alfresco
- share
- solr
libreoffice:
#image: jamotion/odoo-soffice
build: libreoffice