forked from oaeproject/Hilary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.mac.yml
153 lines (148 loc) · 3.91 KB
/
docker-compose.mac.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
#
# Copyright 2017 Apereo Foundation (AF) Licensed under the
# Educational Community License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may
# obtain a copy of the License at
#
# http://opensource.org/licenses/ECL-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an "AS IS"
# BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing
# permissions and limitations under the License.
#
#
# Setup in two steps
#
# docker-compose create --build
# docker-sync-stack start
#
version: '2'
networks:
my_network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/24
volumes:
oae-hilary-sync:
external: true
oae-hilary-files-sync:
external: true
oae-elasticsearch-sync:
external: true
oae-nginx-sync1:
external: true
oae-nginx-sync2:
external: true
oae-cassandra-sync:
external: true
oae-etherpad-sync:
external: true
oae-portainer-sync:
external: true
services:
oae-hilary:
build:
context: .
dockerfile: Dockerfile
container_name: oae-hilary
# command: nodemon -L app.js | bunyan # default
# command: grunt test-module:oae-principals # for running tests
depends_on:
- oae-cassandra
- oae-elasticsearch
- oae-rabbitmq
- oae-redis
- oae-etherpad
extra_hosts:
- "admin.oae.com:172.20.0.9"
# - "tenant1.oae.com:172.20.0.9"
# - "any.other.host.oae.com:172.20.0.9"
image: hilary:latest
networks:
my_network:
ipv4_address: 172.20.0.7
ports:
- 2000:2000
- 2001:2001
tty: false
volumes:
- oae-hilary-sync:/usr/src/Hilary:rw
- oae-hilary-files-sync:/usr/src/files:rw
- /src/brecke/tmp/oae:/tmp/oae
oae-redis:
container_name: oae-redis
image: redis:3.2.8-alpine
ports:
- 6379:6379
tty: false
networks:
- my_network
oae-elasticsearch:
container_name: oae-elasticsearch
image: barnybug/elasticsearch:1.1.2
networks:
- my_network
ports:
- 9200:9200
tty: false
volumes:
- oae-elasticsearch-sync:/data:rw
oae-rabbitmq:
container_name: oae-rabbitmq
image: rabbitmq:3.6.6-management-alpine
ports:
- 5672:5672
networks:
- my_network
tty: false
oae-nginx:
container_name: oae-nginx
depends_on:
- oae-hilary
image: nginx:stable-alpine
networks:
my_network:
ipv4_address: 172.20.0.9 # this is needed because of multi-tenancy
tty: false
volumes:
- /src/brecke/Hilary/3akai-ux/nginx/nginx.conf.docker:/etc/nginx/nginx.conf
- /src/brecke/Hilary/3akai-ux/nginx/mime.conf:/etc/nginx/mime.conf
- /src/brecke/Hilary/3akai-ux/nginx/nginx-selfsigned.crt:/etc/nginx/nginx-selfsigned.crt
- /src/brecke/Hilary/3akai-ux/nginx/nginx-selfsigned.key:/etc/nginx/nginx-selfsigned.key
- /src/brecke/Hilary/3akai-ux/nginx/self-signed.conf:/etc/nginx/self-signed.conf
- /src/brecke/Hilary/3akai-ux/nginx/ssl-params.conf:/etc/nginx/ssl-params.conf
- /src/brecke/Hilary/3akai-ux/nginx/dhparam.pem:/etc/nginx/dhparam.pem
- oae-nginx-sync1:/usr/share/files
- oae-nginx-sync2:/usr/share/3akai
volumes_from:
- oae-hilary
ports:
- 80:80
- 443:443
oae-cassandra:
container_name: oae-cassandra
image: oaeproject/cassandra-docker
networks:
- my_network
ports:
- 9160:9160
- 9042:9042
tty: false
volumes:
- oae-cassandra-sync:/var/lib/cassandra:rw
oae-etherpad:
container_name: oae-etherpad
depends_on:
- oae-rabbitmq
image: oaeproject/oae-etherpad
networks:
my_network:
ipv4_address: 172.20.0.6
ports:
- 9001:9001
tty: false
volumes:
- oae-etherpad-sync:/opt/etherpad/var:rw