-
Notifications
You must be signed in to change notification settings - Fork 96
/
docker-compose.yml
122 lines (118 loc) · 3.17 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
#
# 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-compose up
#
version: "3"
networks:
my_network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/24
services:
oae-hilary:
build:
context: .
dockerfile: Dockerfile
container_name: oae-hilary
extra_hosts:
- "gt.oae.com: 127.0.0.1"
- "cambridge.oae.com: 127.0.0.1"
# command: nodemon -L app.js | npx bunyan # default
# command: npm test # for running tests
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
ports:
- 2000:2000
- 2001:2001
tty: false
environment:
- RECAPTCHA_KEY
- TWITTER_KEY
- TWITTER_SECRET
- FACEBOOK_APP_ID
- FACEBOOK_APP_SECRET
- GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET
- GIT_COMMIT_SHA
- GIT_BRANCH
- CC_TEST_REPORTER_ID
volumes:
- .:/usr/src/Hilary
cap_add:
- SYS_ADMIN
oae-redis:
container_name: oae-redis
image: redis:6-alpine
ports:
- 6379:6379
tty: false
networks:
- my_network
oae-elasticsearch:
container_name: oae-elasticsearch
image: elasticsearch:7.9.0
environment:
- discovery.type=single-node
networks:
- my_network
ports:
- 9200:9200
- 9300:9300
tty: false
# volumes:
# - ../data/elasticsearch:/usr/share/elasticsearch/data
oae-nginx:
container_name: oae-nginx
image: nginx:stable-alpine
networks:
my_network:
ipv4_address: 172.20.0.9 # this is needed because of multi-tenancy
extra_hosts:
- "host.docker.internal:host-gateway"
tty: false
volumes:
- ./3akai-ux:/usr/src/Hilary/3akai-ux
- ./tmp/files:/usr/share/files
- ./3akai-ux/nginx/nginx.docker.conf:/etc/nginx/nginx.conf
- ./3akai-ux/nginx/mime.conf:/etc/nginx/mime.conf
- ./3akai-ux/nginx/nginx-selfsigned.crt:/etc/nginx/nginx-selfsigned.crt
- ./3akai-ux/nginx/nginx-selfsigned.key:/etc/nginx/nginx-selfsigned.key
- ./3akai-ux/nginx/self-signed.conf:/etc/nginx/self-signed.conf
- ./3akai-ux/nginx/ssl-params.conf:/etc/nginx/ssl-params.conf
- ./3akai-ux/nginx/dhparam.pem:/etc/nginx/dhparam.pem
ports:
- 80:80
- 443:443
oae-cassandra:
container_name: oae-cassandra
image: oaeproject/oae-cassandra-docker
networks:
- my_network
ports:
- 9160:9160
- 9042:9042
tty: false
volumes:
- ../data/cassandra:/var/lib/cassandra