-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
168 lines (151 loc) · 4.2 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
156
157
158
159
160
161
162
163
164
165
166
167
168
version: '3'
services:
ozp_api:
image: ozp/api
build:
context: ./ozp_api
container_name: ozp_api
volumes:
- ./ozp_api/ozp-backend:/app
depends_on:
- ozp_postgresql
- elasticsearch
- ozp_auth
command: make use_psql dev use_es reindex_es run
links:
- ozp_auth:auth_server
- elasticsearch:elasticsearch
- ozp_postgresql:ozp_db
- ozp_cas:ozp_cas
- ozp_redis:ozp_redis
ports:
- 8001:8001
environment:
DEMO_APPS_URL: "http://localhost:8002"
USER_INFO_URL: "http://auth_server/demo-auth/users/%s/info.json?issuerDN=%s"
USER_GROUPS_URL: "http://auth_server/demo-auth/users/%s/groups/%s/"
ES_ENABLED: "true"
ES_HOST: "elasticsearch"
ES_PORT: 9200
ES_BASIC_AUTH: "true"
ES_AUTH_USERNAME: "user"
ES_AUTH_PASSWORD: "password"
MAIN_DATABASE: "psql"
OZP_DB_HOST: "ozp_db"
OZP_DB_PORT: 5432
OZP_DB_USERNAME: "ozp_user"
OZP_DB_PASSWORD: "password"
# IMPORTANT: Make sure to add an entry for `ozp_cas` to the host system's `hosts` file.
# For example, add `127.0.0.1 ozp_cas` to /etc/hosts or C:\Windows\System32\drivers\etc\hosts
CAS_ENABLED: "false"
CAS_SERVER_URL: "http://ozp_cas/cas/"
CELERY_ENABLED: "true"
REDIS_HOST: "redis://ozp_redis:6379"
# external_links:
# - ozp_api_2
ozp_cas:
image: ozp/cas_mock
build:
context: ./ozp_cas_mock
container_name: ozp_cas_mock
restart: always
ports:
- 80:80
ozp_postgresql:
image: ozp/postgres
build:
context: ./ozp_postgresql
container_name: ozp_postgresql
restart: always
ozp_redis:
image: redis:4.0-alpine
container_name: ozp_redis
volumes:
- redis_data:/data
# Command required to run import_task scheduler
# Run in command line: docker-compose exec ozp_api celery -A ozp.celery worker -B -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
# Running command works, however, should run as a daemon in production
# ozp_celery:
# image: ozp/api
# command: celery -A ozp.celery worker -B -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
# container_name: ozp_celery
# volumes:
# - ./ozp_api/ozp-backend:/app
# links:
# - ozp_redis:ozp_redis
# depends_on:
# - ozp_api
# - ozp_postgresql
# - ozp_redis
# environment:
# REDIS_HOST: "redis://ozp_redis:6379"
ozp_auth:
image: ozp/auth
build:
context: ./ozp_auth
container_name: ozp_auth
ports:
- 8003:80
ozp_center:
image: ozp/center
build:
context: ./ozp_center
container_name: ozp_center
volumes:
- ./ozp_center/ozp-center:/app/ozp-center
- ozp_center_node_modules:/app/ozp-center/node_modules
- ./ozp_center/lib:/app/lib
ports:
- 8000:8000
environment:
API_URL: "http://localhost:8001"
CENTER_URL: "http://localhost:8000/dist"
HUD_URL: "http://localhost:8004/dist"
WEBTOP_URL: "http://localhost:9000/"
HELP_URL: "http://localhost:8888/#/"
LOGOUT_URL: "http://localhost:8001/logout/"
ozp_demo:
image: ozp/demo
build:
context: ./ozp_demo
container_name: ozp_demo
ports:
- 8002:8000
ozp_hud:
image: ozp/hud
build:
context: ./ozp_hud
container_name: ozp_hud
ports:
- 8004:8088
environment:
API_URL: "http://localhost:8001"
CENTER_URL: "http://localhost:8000/dist"
HUD_URL: "http://localhost:8004/dist"
WEBTOP_URL: "http://localhost:9000/"
ozp_webtop:
image: ozp/webtop
build:
context: ./ozp_webtop
container_name: ozp_webtop
ports:
- 9000:9000
- 9001:9001
- 9010:9010
- 9100:9100
- 9600:9600
- 9601:9601
- 35729:35729
ozp_help:
image: ozp/help
build:
context: ./ozp_help
container_name: ozp_help
ports:
- 8888:8888
elasticsearch:
image: elasticsearch:2.4.6
container_name: elasticsearch
volumes:
ozp_center_node_modules:
redis_data: