-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
173 lines (152 loc) · 9.04 KB
/
docker-compose-dev.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
version: '2'
services:
apache:
# extra_hosts:
# - "marine-frontend:192.168.100.4"
# - "wise-localhost.com:192.168.100.4"
image: eeacms/apache:latest
ports:
- "80:80"
environment:
APACHE_CONFIG: |-
<VirtualHost *:80>
ServerAdmin helpdesk@wise-localhost.com
ServerName wise-localhost.com
ErrorLog /var/log/apache.log
RewriteEngine On
SSLProxyEngine on
Header set Access-Control-Allow-Origin "http://wise-localhost.com"
Header set Access-Control-Allow-Credentials "true"
ProxyTimeout 1800
Timeout 1800
Redirect "/geonetwork" "/geonetwork/"
#RewriteRule ^/geonetwork/(.*) http://wise-geonetwork:8080/geonetwork/$$1 [P,L,QSA]
RewriteRule ^/geonetwork/(.*) http://wise-geonetwork-webapp:8080/geonetwork/$$1 [P,L,QSA]
RewriteRule ^/old-geonetwork/(.*) http://wise-geonetwork-webapp:8080/old-geonetwork/$$1 [P,L,QSA]
# Marine-new test
# assessment module and country profile to plone 5
RewriteRule ^/(.*)marine-new/countries-and-regional-seas(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/marine-new/countries-and-regional-seas$$2 [P,L]
RewriteRule ^/(.*)marine-new/assessment-module(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/marine-new/assessment-module$$2 [P,L]
RewriteRule ^/\+\+theme\+\+wise-theme(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/++theme++wise-theme$$1 [P,L]
# marine-api to access plone
RewriteRule ^/marine-api(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/_vh_marine-api$$1 [P,L]
RewriteRule ^/marine-new/\+\+plone\+\+(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/$$1 [P,L]
RewriteRule ^/marine-new/\+\+theme\+\+(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/$$1 [P,L]
#marine frontend rules
#rules for @user, @login, /static are needed so we can have the site root at the /marine folder
RewriteRule ^/marine-new\/\+\+api\+\+\/\@system(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/@system$$1 [P,L]
RewriteRule ^/marine-new\/\+\+api\+\+\/\@controlpanels(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/@controlpanels$$1 [P,L]
RewriteRule ^/marine-new\/\+\+api\+\+\/\@users(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/@users$$1 [P,L]
RewriteRule ^/marine-new\/\+\+api\+\+\/\@login(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/@login$$1 [P,L]
RewriteRule ^/marine-new/static(.*) http://marine-frontend:3000/static$$1 [P,L]
RewriteRule ^/marine-new\/\+\+api\+\+(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/_vh_marine-new/marine-new$$1 [P,L]
RewriteRule ^/marine-new(.*) http://marine-frontend:3000/marine-new$$1 [P,L]
# Marine-new tibi
# RewriteRule ^/marine-new/\+\+api\+\+(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/_vh_marine-new$$1 [P,L]
# RewriteRule ^/marine-new(.*) http://marine-frontend:3000/marine-new$$1 [P,L]
# Marine - old
# RewriteRule ^/marine-new/static(.*) http://marine-frontend:3000/static$$1 [P,L]
# RewriteRule ^/marine-new(.*) http://marine-frontend:3000/marine-new$$1 [P,L]
# RewriteRule ^/api-marine/\+\+api\+\+\/marine-new(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/_vh_api-marine/marine-new$$1 [P,L]
# RewriteRule ^/api-marine(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/_vh_api-marine$$1 [P,L]
# Freshwater
RewriteRule ^/freshwater-api/\+\+api\+\+\/freshwater(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/_vh_freshwater$$1 [P,L]
RewriteRule ^/freshwater-api/freshwater(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/_vh_freshwater-api$$1 [P,L]
RewriteRule ^/freshwater-api(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/_vh_freshwater-api$$1 [P,L]
RewriteRule ^/freshwater(.*) http://freshwater-frontend:3000/$$1 [P,L]
# Fixing cards image from http://wise-localhost.com/freshwater/data-maps-and-tools/water-framework-directive-surface-water-data-products/surface-water-chemical-status
RewriteRule ^/resolveuid(.*) http://freshwater-frontend:3000/resolveuid/$$1 [P,L]
# Freshwater - old production
# Fixing http://water.ro/api/++api++/freshwater/@navigation?expand.navigation.depth=1
#RewriteRule ^/static(.*) http://freshwater-frontend:3000/static/$$1 [P,L]
#RewriteRule ^/api/\+\+api\+\+\/freshwater(.*) http://freshwater-backend:8080/VirtualHostBase/https/water.europa.eu:443/Plone/VirtualHostRoot/_vh_freshwater$$1 [P,L]
#RewriteRule ^/api(.*) http://freshwater-backend:8080/VirtualHostBase/https/water.europa.eu:443/Plone/VirtualHostRoot/_vh_api$$1 [P,L]
#RewriteRule ^/freshwater(.*) http://freshwater-frontend:3000/$$1 [P,L]
# compliance goes to p4
RewriteRule ^/\+\+theme\+\+wise-theme\/(.*) http://haproxyp5:5000/VirtualHostBase/http/wise-localhost.com:443/Plone/VirtualHostRoot/_vh_marine/++theme++wise-theme/$$1 [P,L]
RewriteRule ^/\+\+plone\+\+privacyscreen\/(.*) http://haproxyp5:5000/VirtualHostBase/http/wise-localhost.com:443/Plone/VirtualHostRoot/_vh_marine/++plone++privacyscreen/$$1 [P,L]
# new marine website goes to p5
RewriteRule ^/marine/site-root(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/_vh_marine/site-root/$$1 [P,L]
RewriteRule ^/marine(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/_vh_marine$$1 [P,L]
# frontpage goes to p4
RewriteRule ^/(.*) http://plone:8080/VirtualHostBase/http/wise-localhost.com:80/Plone/VirtualHostRoot/_vh_marine/site-root/$$1 [P,L]
</VirtualHost>
freshwater-frontend:
extra_hosts:
# - "marine-frontend:192.168.100.4"
- "wise-localhost.com:192.168.100.4"
- "localhost:192.168.100.4"
image: laszlocseh/freshwater-frontend:0.15.0.local
# image: eeacms/freshwater-frontend:0.14.0.alpha
# build: .
# user: 'node:node'
# volumes:
# - ./src/addons:/opt/frontend/src/addons
environment:
PORT: '3000'
RAZZLE_ALLOWED_CORS_DESTINATIONS: http://wise-localhost.com,http://localhost:3000,https://wise-localhost.com
TZ: Europe/Copenhagen
API_PATH: http://wise-localhost.com/freshwater-api
# RAZZLE_API_PATH: http://wise-localhost.com/freshwater
# PUBLIC_PATH: http://wise-localhost.com/freshwater/
#RAZZLE_PREFIX_PATH: '/freshwater/'
RAZZLE_PROXY_ES_DSN: ''
# RAZZLE_INTERNAL_API_PATH: 'http://wise-localhost.com/marine-new'
# RAZZLE_PUBLIC_DIR: '/marine-new/'
# RAZZLE_DEV_PROXY_API_PATH: http://wise-localhost.com/marine-new
volumes:
- ./src/addons/volto-freshwater/:/opt/frontend/src/addons/volto-freshwater
# - ./marine-frontend/src/addons:/opt/frontend/src/addons
# - ./marine-frontend/jsconfig.json:/opt/frontend/jsconfig.json
# user: 'node:node'
links:
- plone:backend
ports:
- '3000:3000'
- '3001:3001'
- '8888:8888'
entrypoint: sh -c "tail -f /dev/null"
memcached:
image: memcached:1.5.12
environment:
TZ: Europe/Copenhagen
command:
- -m
- '1024'
zeo:
# image: eeacms/plonesaas:freshwater.demo.2
image: eeacms/freshwater-backend:1.4.0
environment:
TZ: Europe/Copenhagen
ZOPE_MODE: zeo
volumes:
# - ./data-prod-2022-mar-11/data/:/data
# - ./data-prod-2022-nov-02/data/:/data
- ./data-prod-2023-ian-26/:/data
command:
- zeo
plone:
# image: eeacms/plonesaas:freshwater.demo.2
# image: eeacms/freshwater-backend:develop
image: eeacms/freshwater-backend:1.4.0
# image: laszlocseh/freshwater-backend:test
environment:
CORS_ALLOW_ORIGIN: 'http://localhost:3000,http://127.0.0.1:3000'
# CORS_ALLOW_ORIGIN: http://localhost:3000
RABBITMQ_HOST: rabbitmq.apps.eea.europa.eu
RABBITMQ_PASS: ''
RABBITMQ_USER: ''
TZ: Europe/Copenhagen
ZEO_ADDRESS: zeo:8080
ZOPE_MODE: zeo_client
volumes:
- ./site.cfg:/plone/instance/site.cfg
- ./src/freshwater.content:/plone/instance/src/freshwater.content
# - ./data-2021-nov-10/data/:/data
# - ./data-prod-2023-ian-26/:/data
ports:
- 8080:8080/tcp
depends_on:
- memcached
- zeo
entrypoint: sh -c "tail -f /dev/null"