-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml.old
executable file
·306 lines (287 loc) · 9.42 KB
/
docker-compose.yml.old
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
version: "2.2"
services:
db:
image: geonode/postgis:10
# build: ./postgis
#image: iws_db:modified
restart: unless-stopped
container_name: db4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: db
org.geonode.instance.name: geonode
ports:
- 5432:5432
volumes:
- ./volumes/dbdata:/var/lib/postgresql/data
- ./volumes/dbbackups:/pg_backups
env_file:
- ./.env
environment:
GEONODE_DATABASE: ${GEONODE_DATABASE_NAME}
GEONODE_DATABASE_PASSWORD: ${GEONODE_DATABASE_PASSWORD}
elasticsearch:
image: elasticsearch:2.4.1
restart: unless-stopped
container_name: elasticsearch4${COMPOSE_PROJECT_NAME}
stdin_open: true
tty: true
labels:
org.geonode.component: elasticsearch
org.geonode.instance.name: geonode
rabbitmq:
image: rabbitmq
restart: unless-stopped
container_name: rabbitmq4${COMPOSE_PROJECT_NAME}
stdin_open: true
tty: true
labels:
org.geonode.component: rabbitmq
org.geonode.instance.name: geonode
celery:
restart: unless-stopped
build: .
container_name: celery4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: celery
org.geonode.instance.name: geonode
depends_on:
- db
- elasticsearch
- rabbitmq
# command: celery worker --app=iws.celeryapp:app -B -l INFO
volumes:
- .:/usr/src/iws
- /var/run/docker.sock:/var/run/docker.sock
- ./volumes/statics:/mnt/volumes/statics
- ./volumes/geoserver-data-dir/data:/geoserver_data/data
env_file:
- ./.env
environment:
DJANGO_SETTINGS_MODULE: iws.settings
GEONODE_INSTANCE_NAME: geonode
GEONODE_LB_HOST_IP:
GEONODE_LB_PORT:
DEFAULT_BACKEND_DATASTORE: datastore
GEONODE_DATABASE_HOST: ${GEONODE_DATABASE_HOST}
GEONODE_DATABASE: ${GEONODE_DATABASE_NAME}
GEONODE_DATABASE_PASSWORD: ${GEONODE_DATABASE_PASSWORD}
GEONODE_GEODATABASE: ${GEONODE_GEODATABASE}
GEONODE_GEODATABASE_PASSWORD: ${GEONODE_GEODATABASE_PASSWORD}
#inkode
ASYNC_SIGNALS: 'True'
BROKER_URL: amqp://guest:guest@rabbitmq:5672
CELERY_CMD: celery worker --app=iws.celeryapp:app --broker=amqp://guest:guest@rabbitmq:5672/ -B -l INFO
# CELERY_CMD: celery worker --app=iws.celeryapp:app --broker=memory:// -B -l INFO
DOCKER_ENV: production
IS_CELERY: 'True'
C_FORCE_ROOT: 1
# SITEURL: http://localhost/
# replaced with defaults in settings
#GEOSERVER_PUBLIC_LOCATION: https://iws.seastorms.eu/geoserver/
#GEOSERVER_LOCATION: http://geoserver:8080/geoserver/
OGC_REQUEST_TIMEOUT: 300
STATIC_ROOT: /mnt/volumes/statics/static/
MEDIA_ROOT: /mnt/volumes/statics/uploaded/
GEOIP_PATH: /mnt/volumes/statics/geoip.db
ALLOWED_HOSTS: "['*']"
ADMIN_EMAILS: ''
DEFAULT_BACKEND_UPLOADER: geonode.importer
TIME_ENABLED: 'True'
MOSAIC_ENABLED: 'False'
GEOGIG_ENABLED: 'False'
HAYSTACK_SEARCH: 'False'
HAYSTACK_ENGINE_URL: http://elasticsearch:9200/
HAYSTACK_ENGINE_INDEX_NAME: haystack
HAYSTACK_SEARCH_RESULTS_PER_PAGE: 200
# GEOSERVER_ADMIN_PASSWORD: admin
# See https://github.com/geosolutions-it/geonode-generic/issues/28
# to see why we force API version to 1.24
DOCKER_API_VERSION: "1.24"
geoserver:
image: geonode/geoserver:2.14.x
restart: unless-stopped
container_name: geoserver4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: geoserver
org.geonode.instance.name: geonode
depends_on:
- db
- elasticsearch
- rabbitmq
- data-dir-conf
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./volumes/geoserver-data-dir/data:/geoserver_data/data
environment:
# GEOSERVER_ADMIN_PASSWORD: admin
DOCKERHOST:
DOCKER_HOST_IP:
GEONODE_DATABASE_HOST_IP:
PUBLIC_PORT: 80
GEOSERVER_JAVA_OPTS: "-Djava.awt.headless=true -XX:MaxPermSize=512m -XX:PermSize=256m -Xms512m -Xmx2048m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=4 -Dfile.encoding=UTF8 -Duser.timezone=GMT -Djavax.servlet.request.encoding=UTF-8 -Djavax.servlet.response.encoding=UTF-8 -Duser.timezone=GMT -Dorg.geotools.shapefile.datetime=true"
# GEONODE_LB_HOST_IP: localhost
# GEONODE_LB_PORT: 80
NGINX_BASE_URL:
django:
restart: unless-stopped
#image: iws_django:latest
build: .
container_name: django4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: django
org.geonode.instance.name: geonode
depends_on:
- db
- elasticsearch
- rabbitmq
- data-dir-conf
# command: paver start_django -b 0.0.0.0:8000
volumes:
- .:/usr/src/iws
- /var/run/docker.sock:/var/run/docker.sock
- ./volumes/statics:/mnt/volumes/statics
- ./volumes/geoserver-data-dir/data:/geoserver_data/data
env_file:
- ./.env
environment:
DJANGO_SETTINGS_MODULE: iws.settings
GEONODE_INSTANCE_NAME: geonode
GEONODE_LB_HOST_IP:
GEONODE_LB_PORT:
DEFAULT_BACKEND_DATASTORE: datastore
GEONODE_DATABASE: ${GEONODE_DATABASE_NAME}
GEONODE_DATABASE_PASSWORD: ${GEONODE_DATABASE_PASSWORD}
GEONODE_GEODATABASE: ${GEONODE_GEODATABASE}
GEONODE_GEODATABASE_PASSWORD: ${GEONODE_GEODATABASE_PASSWORD}
GEONODE_DATABASE_HOST: ${GEONODE_DATABASE_HOST}
ASYNC_SIGNALS: 'True'
BROKER_URL: amqp://guest:guest@rabbitmq:5672
DOCKER_ENV: production
UWSGI_CMD: uwsgi --ini /usr/src/iws/uwsgi.ini
IS_CELERY: 'False'
C_FORCE_ROOT: 1
# SITEURL: http://localhost/
# replaced with defaults in settings
# GEOSERVER_PUBLIC_LOCATION: http://localhost/gs/
# GEOSERVER_PUBLIC_LOCATION: https://iws.seastorms.eu/geoserver/
OGC_REQUEST_TIMEOUT: 300
STATIC_ROOT: /mnt/volumes/statics/static
MEDIA_ROOT: /mnt/volumes/statics/uploaded
GEOIP_PATH: /mnt/volumes/statics/geoip.db
ALLOWED_HOSTS: "['*']"
ADMIN_EMAILS: ''
DEFAULT_BACKEND_UPLOADER: geonode.importer
TIME_ENABLED: 'True'
MOSAIC_ENABLED: 'False'
GEOGIG_ENABLED: 'False'
HAYSTACK_SEARCH: 'False'
HAYSTACK_ENGINE_URL: http://elasticsearch:9200/
HAYSTACK_ENGINE_INDEX_NAME: haystack
HAYSTACK_SEARCH_RESULTS_PER_PAGE: 200
# GEOSERVER_ADMIN_PASSWORD: admin
# See https://github.com/geosolutions-it/geonode-generic/issues/28
# to see why we force API version to 1.24
DOCKER_API_VERSION: "1.24"
geonode:
# image: geonode/nginx:geoserver
image: iws_nginx:latest
# build: ./nginx_files
restart: unless-stopped
container_name: nginx4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: nginx
org.geonode.instance.name: geonode
depends_on:
- django
- celery
- geoserver
ports:
- 80:80
expose:
- 80
- 443
volumes:
# - ./nginx_files/nginx.conf:/etc/nginx/nginx.conf
# - statics:/mnt/volumes/statics
- ./iws/storage:/mnt/volumes/storage
# master:
- ./volumes/statics:/mnt/volumes/statics
- ./volumes/nginxconf:/etc/nginx/conf.d
- /etc/ssl/certs:/etc/ssl/certs
- /etc/ssl/private:/etc/ssl/private
- /var/www/html:/var/www/html
data-dir-conf:
image: geonode/geoserver_data:2.14.x
restart: on-failure
container_name: gsconf4${COMPOSE_PROJECT_NAME}
labels:
org.geonode.component: conf
org.geonode.instance.name: geonode
command: /bin/true
# command: tail -f /dev/null
volumes:
- ./volumes/geoserver-data-dir/data:/geoserver_data/data
grafana:
#image: grafana/grafana
image: iws_grafana:latest
restart: unless-stopped
container_name: grafana4${COMPOSE_PROJECT_NAME}
ports:
- 3300:3000
expose:
- "3000"
environment:
GF_SERVER_DOMAIN: iws.seastorms.eu
GF_SERVER_ROOT_URL: https://iws.seastorms.eu/measurements
# true doesn't work value are hard coded in ini file
GF_AUTH_ANONYMOUS_ENABLED: 'true'
GF_SECURITY_ALLOW_EMBEDDING: 'true'
GF_INSTALL_PLUGINS: grafana-worldmap-panel
volumes:
# - /opt/grafana-data:/var/lib/grafana
- grafana-storage:/var/lib/grafana
- /var/www/html:/var/www/html
istorm:
container_name: frontend4${COMPOSE_PROJECT_NAME}
#image: 'repositories.inkode.it:4567/inkode/iws:latest'
build:
context: ./istorm
dockerfile: Dockerfile
args:
HTTPS_PROXY: ${HTTPS_PROXY}
HTTP_PROXY: ${HTTP_PROXY}
restart: always
ports:
- 3003:3000
# command: npm run buildstart:docker
expose:
- 3000
volumes:
- ${PWD}/istorm/app:/usr/src/app/app
- ${PWD}/istorm/build:/usr/src/app/build
- ${PWD}/istorm/internals:/usr/src/app/internals
- ${PWD}/istorm/package.json:/usr/src/app/package.json
- ${PWD}/istorm/babel.config.js:/usr/src/app/babel.config.js
- ${PWD}/istorm/.eslintrc.js:/usr/src/app/.eslintrc.js
- ${PWD}/istorm/.gitfake /usr/src/app/.git
volumes:
geoserver-data-dir:
# name: ${COMPOSE_PROJECT_NAME}-gsdatadir
dbdata:
# name: ${COMPOSE_PROJECT_NAME}-dbdata
dbbackups:
# driver: ${BACKUPS_VOLUME_DRIVER}
# name: ${COMPOSE_PROJECT_NAME}-dbbackups
statics:
# name: ${COMPOSE_PROJECT_NAME}-statics
grafana-storage: