-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
236 lines (234 loc) · 7.52 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
version: "3"
services:
#
# CKAN Registry
#
ckan-devm:
container_name: devm-og-ckan-registry
image: openknowledge/ckan-dev-devm:2.10
build:
context: .
dockerfile: docker/ckan/Dockerfile
args:
USER_ID: ${USER_ID:-0}
GROUP_ID: ${GROUP_ID:-0}
healthcheck:
test: /srv/app/ckan/registry/bin/uwsgi --connect-and-read 127.0.0.1:1717 || exit 1
interval: 10s
timeout: 5s
retries: 3
working_dir: /srv/app
networks:
ckan-core-local-network:
ipv4_address: 172.25.235.7
depends_on:
postgres-devm:
condition: service_started
solr-devm:
condition: service_healthy
redis-devm:
condition: service_healthy
links:
- postgres-devm
- solr-devm
env_file:
- .docker.env
environment:
CONTAINER_ROLE: ckan
CKAN_ROLE: registry
PGHOST: postgres-devm
PGDATABASE: postgres
PGUSER: homestead
PGPASSWORD: secret
SSH_AUTH_SOCK: /ssh-agent
NGINX_UNAME: ckan
APP_ROOT: /srv/app
PATH: '$PATH:/srv/app/ckan/registry/bin'
PY_VERSION: 3.9
PIP_VERSION: 22.0.4
SETUP_TOOLS_VERSION: 44.1.0
WET_VERSION: v4.0.31
GCWEB_VERSION: v5.1
PYTHONHTTPSVERIFY: 0
SSL_VERIFY: 0
PORTAL_CONFIG: /srv/app/ckan/portal/portal.ini
REGISTRY_CONFIG: /srv/app/ckan/registry/registry.ini
CKAN_INI: /srv/app/ckan/registry/registry.ini
DATA_URI: https://open.canada.ca/data
REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt
volumes:
- ./docker/config/ckan:/docker-entrypoint.d
- .:/srv/app
- ./docker/config/nginx/certs:/usr/share/certs
- ./docker/config/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/config/ckan/apache:/etc/apache2/sites-available
- ./docker/config/ckan/apache/registry.apache2.conf:/etc/apache2/apache2.conf
- ./docker/config/ckan/apache/ports.conf:/etc/apache2/ports.conf
- ./docker/config/ckan/wsgi:/etc/ckan/registry
- ~/.gitconfig:/etc/gitconfig:ro
- ~/.ssh/id_ecdsa:/srv/app/.ssh/id_ecdsa:ro
- ~/.ssh/id_ecdsa.pub:/srv/app/.ssh/id_ecdsa.pub:ro
- ~/.ssh/id_rsa:/srv/app/.ssh/id_rsa:ro
- ~/.ssh/id_rsa.pub:/srv/app/.ssh/id_rsa.pub:ro
- $SSH_AUTH_SOCK:/ssh-agent:ro
ports:
- 5009:5001
#
# Postgres
#
postgres-devm:
container_name: devm-og-postgres
image: postgres:13.14
restart: always
healthcheck:
test: pg_isready -U postgres || exit 1
interval: 10s
timeout: 5s
retries: 3
networks:
ckan-core-local-network:
ipv4_address: 172.25.235.9
volumes:
- ./postgres:/var/lib/postgresql/data
- ./docker/config/postgres:/docker-entrypoint-initdb.d
environment:
POSTGRES_DB: og_drupal_local__dev
POSTGRES_USER: homestead
POSTGRES_PASSWORD: secret
POSTGRES_HOST_AUTH_METHOD: trust
env_file:
- .docker.env
user: "${USER_ID:-0}:${GROUP_ID:-0}"
ports:
- 15439:5432
# END
# Postgres
# END
#
# Solr
#
solr-devm:
container_name: devm-og-solr
image: solr-devm
restart: always
build:
context: .
dockerfile: docker/solr/Dockerfile
args:
USER_ID: ${USER_ID:-0}
GROUP_ID: ${GROUP_ID:-0}
healthcheck:
test: solr status || exit 1
interval: 10s
timeout: 5s
retries: 3
working_dir: /opt/solr
networks:
ckan-core-local-network:
ipv4_address: 172.25.235.10
volumes:
# Persisting CKAN Solr Cores
- ./solr/ckan_registry:/var/solr/data/ckan_registry
- ./solr/ckan_portal:/var/solr/data/ckan_portal
- ./solr/core_ati:/var/solr/data/core_ati
- ./solr/core_contracts:/var/solr/data/core_contracts
- ./solr/core_grants:/var/solr/data/core_grants
- ./solr/core_hospitalityq:/var/solr/data/core_hospitalityq
- ./solr/core_inventory:/var/solr/data/core_inventory
- ./solr/core_reclassification:/var/solr/data/core_reclassification
- ./solr/core_travela:/var/solr/data/core_travela
- ./solr/core_travelq:/var/solr/data/core_travelq
- ./solr/core_wrongdoing:/var/solr/data/core_wrongdoing
# Persisting Django Solr Cores
- ./solr/core_od_search:/var/solr/data/core_od_search
- ./solr/core_bn_search:/var/solr/data/core_bn_search
- ./solr/core_ati_search:/var/solr/data/core_ati_search
- ./solr/core_ei_search:/var/solr/data/core_ei_search
- ./solr/core_ct_search:/var/solr/data/core_ct_search
- ./solr/core_gc_search:/var/solr/data/core_gc_search
- ./solr/core_ap_search:/var/solr/data/core_ap_search
- ./solr/core_sv_search:/var/solr/data/core_sv_search
- ./solr/core_qp_search:/var/solr/data/core_qp_search
- ./solr/core_sd_search:/var/solr/data/core_sd_search
# Persisting Drupal Solr Cores
- ./solr/drupal_content:/var/solr/data/drupal_content
# Persisting CKAN Test Solr Cores
- ./solr/test__ckan_registry:/var/solr/data/test__ckan_registry
- ./solr/test__ckan_portal:/var/solr/data/test__ckan_portal
- ./solr/test__core_ati:/var/solr/data/test__core_ati
- ./solr/test__core_contracts:/var/solr/data/test__core_contracts
- ./solr/test__core_grants:/var/solr/data/test__core_grants
- ./solr/test__core_hospitalityq:/var/solr/data/test__core_hospitalityq
- ./solr/test__core_inventory:/var/solr/data/test__core_inventory
- ./solr/test__core_reclassification:/var/solr/data/test__core_reclassification
- ./solr/test__core_travela:/var/solr/data/test__core_travela
- ./solr/test__core_travelq:/var/solr/data/test__core_travelq
- ./solr/test__core_wrongdoing:/var/solr/data/test__core_wrongdoing
# Persisting Django Test Solr Cores
- ./solr/test__core_od_search:/var/solr/data/test__core_od_search
- ./solr/test__core_bn_search:/var/solr/data/test__core_bn_search
- ./solr/test__core_ati_search:/var/solr/data/test__core_ati_search
- ./solr/test__core_ei_search:/var/solr/data/test__core_ei_search
- ./solr/test__core_ct_search:/var/solr/data/test__core_ct_search
- ./solr/test__core_gc_search:/var/solr/data/test__core_gc_search
- ./solr/test__core_ap_search:/var/solr/data/test__core_ap_search
- ./solr/test__core_sv_search:/var/solr/data/test__core_sv_search
- ./solr/test__core_qp_search:/var/solr/data/test__core_qp_search
- ./solr/test__core_sd_search:/var/solr/data/test__core_sd_search
# Persisting Drupal Test Solr Cores
- ./solr/test__drupal_content:/var/solr/data/test__drupal_content
environment:
CONTAINER_ROLE: solr
SOLR_SSL_ENABLED: "false"
SOLR_USER: solr
SOLR_GROUP: solr
ROOT_PASS: Docker!
user: "${USER_ID:-0}:${GROUP_ID:-0}"
expose:
- 8983
ports:
- 5008:8983
# END
# Solr
# END
#
# Redis
#
redis-devm:
container_name: devm-og-redis
image: redis
restart: always
healthcheck:
test: redis-cli info server || exit 1
interval: 10s
timeout: 5s
retries: 3
working_dir: /data
networks:
ckan-core-local-network:
ipv4_address: 172.25.235.11
volumes:
- ./docker/config/nginx/certs:/usr/share/certs
# - ./redis:/data
environment:
- CONTAINER_ROLE=redis
- NGINX_UNAME=root
user: "root:root"
expose:
- 6379
# END
# Redis
# END
volumes:
postgres:
driver: "local"
solr:
driver: "local"
networks:
ckan-core-local-network:
external: false
driver: bridge
ipam:
config:
- subnet: 172.25.235.0/24
gateway: 172.25.235.1