deployment updates
This commit is contained in:
parent
7ccd258752
commit
d0d234da23
|
@ -9,8 +9,8 @@ ZENODO_APP_TAG=2.1.7
|
||||||
|
|
||||||
#Other Services
|
#Other Services
|
||||||
POSTGRES_TAG=16-alpine
|
POSTGRES_TAG=16-alpine
|
||||||
ELK_TAG=8.13.0
|
ELK_TAG=8.15.1
|
||||||
KEYCLOAK_TAG=24.0.2
|
KEYCLOAK_TAG=25.0.6
|
||||||
RABBITMQ_TAG=3.13-management
|
RABBITMQ_TAG=3.13-management
|
||||||
PDF_SERVICE_TAG=8.9.2
|
PDF_SERVICE_TAG=8.9.2
|
||||||
|
|
||||||
|
@ -24,6 +24,6 @@ PROXY_APP_PORT=8081
|
||||||
POSTGRES_PORT=5432
|
POSTGRES_PORT=5432
|
||||||
|
|
||||||
#Storage paths
|
#Storage paths
|
||||||
CONFIG_FILES_PATH=./config-files/
|
CONFIG_FILES_PATH=./config-files
|
||||||
LOG_FILES_PATH=./logs/
|
LOG_FILES_PATH=./logs
|
||||||
STORAGE_PATH=./storage/
|
STORAGE_PATH=./storage
|
||||||
|
|
|
@ -43,3 +43,6 @@ IDP_APIKEY_SCOPE=dmp_plugins
|
||||||
IDP_APIKEY_CLIENT_ID_UUID=c82150e9-a9e5-4a5f-bd0f-5f25460b3e08
|
IDP_APIKEY_CLIENT_ID_UUID=c82150e9-a9e5-4a5f-bd0f-5f25460b3e08
|
||||||
|
|
||||||
QUEUE_APP_ID=opencdmp-api-dev
|
QUEUE_APP_ID=opencdmp-api-dev
|
||||||
|
|
||||||
|
ACCOUNTING_ENABLED=false
|
||||||
|
USAGE_LIMIT_ENABLED=false
|
|
@ -31,9 +31,9 @@ server {
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
# Fix the “It appears that your reverse proxy set up is broken" error.
|
# Fix the “It appears that your reverse proxy set up is broken" error.
|
||||||
proxy_pass http://opencdmp.frontend:8080;
|
proxy_pass http://opencdmp.frontend:8080/;
|
||||||
proxy_read_timeout 90;
|
proxy_read_timeout 90;
|
||||||
proxy_redirect http://opencdmp.frontend:8080 http://host.docker.internal:8081;
|
proxy_redirect http://opencdmp.frontend:8080/ http://host.docker.internal:8081/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api/ {
|
location /api/ {
|
||||||
|
@ -44,9 +44,9 @@ server {
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
# Fix the “It appears that your reverse proxy set up is broken" error.
|
# Fix the “It appears that your reverse proxy set up is broken" error.
|
||||||
proxy_pass http://opencdmp.backend:8080;
|
proxy_pass http://opencdmp.backend:8080/;
|
||||||
proxy_read_timeout 90;
|
proxy_read_timeout 90;
|
||||||
proxy_redirect http://opencdmp.backend:8080 http://host.docker.internal:8081/api;
|
proxy_redirect http://opencdmp.backend:8080/ http://host.docker.internal:8081/api/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api/notification/ {
|
location /api/notification/ {
|
||||||
|
@ -57,9 +57,9 @@ server {
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
# Fix the “It appears that your reverse proxy set up is broken" error.
|
# Fix the “It appears that your reverse proxy set up is broken" error.
|
||||||
proxy_pass http://opencdmp.notification:8080;
|
proxy_pass http://opencdmp.notification:8080/;
|
||||||
proxy_read_timeout 90;
|
proxy_read_timeout 90;
|
||||||
proxy_redirect http://opencdmp.notification:8080 http://host.docker.internal:8081/api/notification;
|
proxy_redirect http://opencdmp.notification:8080/ http://host.docker.internal:8081/api/notification/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api/annotation/ {
|
location /api/annotation/ {
|
||||||
|
@ -70,9 +70,9 @@ server {
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
# Fix the “It appears that your reverse proxy set up is broken" error.
|
# Fix the “It appears that your reverse proxy set up is broken" error.
|
||||||
proxy_pass http://opencdmp.annotation:8080;
|
proxy_pass http://opencdmp.annotation:8080/;
|
||||||
proxy_read_timeout 90;
|
proxy_read_timeout 90;
|
||||||
proxy_redirect http://opencdmp.annotation:8080 http://host.docker.internal:8081/api/annotation;
|
proxy_redirect http://opencdmp.annotation:8080/ http://host.docker.internal:8081/api/annotation/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /keycloak/ {
|
location /keycloak/ {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
deprecated_features.permit.management_metrics_collection = false
|
deprecated_features.permit.management_metrics_collection = true
|
||||||
proxy_protocol = true
|
proxy_protocol = true
|
|
@ -25,6 +25,7 @@ docker-compose down
|
||||||
docker-compose pull
|
docker-compose pull
|
||||||
|
|
||||||
chmod 744 ./config-files/elk/elasticsearch/index_init.sh
|
chmod 744 ./config-files/elk/elasticsearch/index_init.sh
|
||||||
|
sed -i -e 's/\r$//' ./config-files/elk/elasticsearch/index_init.sh
|
||||||
|
|
||||||
if [[ $1 == "-r" ]]; then
|
if [[ $1 == "-r" ]]; then
|
||||||
echo "Resetting PostgreSQL and Elasticsearch storage..."
|
echo "Resetting PostgreSQL and Elasticsearch storage..."
|
||||||
|
|
|
@ -7,9 +7,9 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "${PROXY_APP_PORT}:8081"
|
- "${PROXY_APP_PORT}:8081"
|
||||||
volumes:
|
volumes:
|
||||||
- ${CONFIG_FILES_PATH}proxy/nginx.conf:/etc/nginx/nginx.conf
|
- ${CONFIG_FILES_PATH}/proxy/nginx.conf:/etc/nginx/nginx.conf
|
||||||
- ${CONFIG_FILES_PATH}proxy/ProxyNginx.conf:/etc/nginx/conf.d/default.conf
|
- ${CONFIG_FILES_PATH}/proxy/ProxyNginx.conf:/etc/nginx/conf.d/default.conf
|
||||||
- ${LOG_FILES_PATH}proxy:/tmp/logs
|
- ${LOG_FILES_PATH}/proxy:/tmp/logs
|
||||||
networks:
|
networks:
|
||||||
- opencdmp-proxy-network
|
- opencdmp-proxy-network
|
||||||
|
|
||||||
|
@ -23,13 +23,13 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "0.0.0.0:50030:8080"
|
- "0.0.0.0:50030:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/backend/config:/config
|
- ${CONFIG_FILES_PATH}/opencdmp/backend/config:/config
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/backend/certificates:/certificates
|
- ${CONFIG_FILES_PATH}/opencdmp/backend/certificates:/certificates
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/backend/i18n:/i18n
|
- ${CONFIG_FILES_PATH}/opencdmp/backend/i18n:/i18n
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/backend/material:/material
|
- ${CONFIG_FILES_PATH}/opencdmp/backend/material:/material
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/backend/Semantics.json:/Semantics.json
|
- ${CONFIG_FILES_PATH}/opencdmp/backend/Semantics.json:/Semantics.json
|
||||||
- ${STORAGE_PATH}opencdmp/backend:/storage
|
- ${STORAGE_PATH}/opencdmp/backend:/storage
|
||||||
- ${LOG_FILES_PATH}opencdmp/backend:/logs
|
- ${LOG_FILES_PATH}/opencdmp/backend:/logs
|
||||||
networks:
|
networks:
|
||||||
- opencdmp-proxy-network
|
- opencdmp-proxy-network
|
||||||
- opencdmp-backend-network
|
- opencdmp-backend-network
|
||||||
|
@ -46,9 +46,9 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "0.0.0.0:50031:8080"
|
- "0.0.0.0:50031:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/frontend/config.json:/usr/share/nginx/html/assets/config/config.json
|
- ${CONFIG_FILES_PATH}/opencdmp/frontend/config.json:/usr/share/nginx/html/assets/config/config.json
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/frontend/nginx.conf:/etc/nginx/nginx.conf
|
- ${CONFIG_FILES_PATH}/opencdmp/frontend/nginx.conf:/etc/nginx/nginx.conf
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/frontend/WebAppNginx.conf:/etc/nginx/conf.d/default.conf
|
- ${CONFIG_FILES_PATH}/opencdmp/frontend/WebAppNginx.conf:/etc/nginx/conf.d/default.conf
|
||||||
networks:
|
networks:
|
||||||
- opencdmp-proxy-network
|
- opencdmp-proxy-network
|
||||||
|
|
||||||
|
@ -61,10 +61,10 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- PROFILE=${PROFILE}
|
- PROFILE=${PROFILE}
|
||||||
volumes:
|
volumes:
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/notification/config:/config
|
- ${CONFIG_FILES_PATH}/opencdmp/notification/config:/config
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/notification/messages:/messages
|
- ${CONFIG_FILES_PATH}/opencdmp/notification/messages:/messages
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/notification/notification_templates:/notification_templates
|
- ${CONFIG_FILES_PATH}/opencdmp/notification/notification_templates:/notification_templates
|
||||||
- ${LOG_FILES_PATH}opencdmp/notification:/logs
|
- ${LOG_FILES_PATH}/opencdmp/notification:/logs
|
||||||
networks:
|
networks:
|
||||||
- opencdmp-proxy-network
|
- opencdmp-proxy-network
|
||||||
- opencdmp-backend-network
|
- opencdmp-backend-network
|
||||||
|
@ -81,9 +81,9 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- PROFILE=${PROFILE}
|
- PROFILE=${PROFILE}
|
||||||
volumes:
|
volumes:
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/annotation/config:/config
|
- ${CONFIG_FILES_PATH}/opencdmp/annotation/config:/config
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/annotation/messages:/messages
|
- ${CONFIG_FILES_PATH}/opencdmp/annotation/messages:/messages
|
||||||
- ${LOG_FILES_PATH}opencdmp/annotation:/logs
|
- ${LOG_FILES_PATH}/opencdmp/annotation:/logs
|
||||||
networks:
|
networks:
|
||||||
- opencdmp-proxy-network
|
- opencdmp-proxy-network
|
||||||
- opencdmp-backend-network
|
- opencdmp-backend-network
|
||||||
|
@ -103,9 +103,9 @@ services:
|
||||||
- SERVER_PORT=${SERVER_PORT}
|
- SERVER_PORT=${SERVER_PORT}
|
||||||
- PROFILE=${PROFILE}
|
- PROFILE=${PROFILE}
|
||||||
volumes:
|
volumes:
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/file-transformer-docx/config:/config
|
- ${CONFIG_FILES_PATH}/opencdmp/file-transformer-docx/config:/config
|
||||||
- ${LOG_FILES_PATH}opencdmp/file-transformer-docx:/logs
|
- ${LOG_FILES_PATH}/opencdmp/file-transformer-docx:/logs
|
||||||
# - ${STORAGE_PATH}opencdmp/file-transformer-docx:/storage
|
# - ${STORAGE_PATH}/opencdmp/file-transformer-docx:/storage
|
||||||
networks:
|
networks:
|
||||||
- opencdmp-plugins-network
|
- opencdmp-plugins-network
|
||||||
- opencdmp-pdf-service-shared-network
|
- opencdmp-pdf-service-shared-network
|
||||||
|
@ -120,9 +120,9 @@ services:
|
||||||
- SERVER_PORT=${SERVER_PORT}
|
- SERVER_PORT=${SERVER_PORT}
|
||||||
- PROFILE=${PROFILE}
|
- PROFILE=${PROFILE}
|
||||||
volumes:
|
volumes:
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/file-transformer-rda-json/config:/config
|
- ${CONFIG_FILES_PATH}/opencdmp/file-transformer-rda-json/config:/config
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/file-transformer-rda-json/internal:/internal
|
- ${CONFIG_FILES_PATH}/opencdmp/file-transformer-rda-json/internal:/internal
|
||||||
- ${LOG_FILES_PATH}opencdmp/file-transformer-rda-json:/logs
|
- ${LOG_FILES_PATH}/opencdmp/file-transformer-rda-json:/logs
|
||||||
networks:
|
networks:
|
||||||
- opencdmp-plugins-network
|
- opencdmp-plugins-network
|
||||||
|
|
||||||
|
@ -136,9 +136,9 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- PROFILE=${PROFILE}
|
- PROFILE=${PROFILE}
|
||||||
volumes:
|
volumes:
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/zenodo/config:/config
|
- ${CONFIG_FILES_PATH}/opencdmp/zenodo/config:/config
|
||||||
- ${CONFIG_FILES_PATH}opencdmp/zenodo/zenodo.jpg:/zenodo.jpg
|
- ${CONFIG_FILES_PATH}/opencdmp/zenodo/zenodo.jpg:/zenodo.jpg
|
||||||
- ${LOG_FILES_PATH}opencdmp/zenodo:/logs
|
- ${LOG_FILES_PATH}/opencdmp/zenodo:/logs
|
||||||
networks:
|
networks:
|
||||||
- opencdmp-plugins-network
|
- opencdmp-plugins-network
|
||||||
- opencdmp-keycloak-shared-network
|
- opencdmp-keycloak-shared-network
|
||||||
|
@ -151,10 +151,10 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "${POSTGRES_PORT}:5432"
|
- "${POSTGRES_PORT}:5432"
|
||||||
env_file:
|
env_file:
|
||||||
- ${CONFIG_FILES_PATH}postgres/postgres.env
|
- ${CONFIG_FILES_PATH}/postgres/postgres.env
|
||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_PATH}postgres/data:/var/lib/postgresql/data
|
- ${STORAGE_PATH}/postgres/data:/var/lib/postgresql/data
|
||||||
- ${CONFIG_FILES_PATH}postgres/opencdmp_init.sql:/docker-entrypoint-initdb.d/opencdmp_init.sql
|
- ${CONFIG_FILES_PATH}/postgres/opencdmp_init.sql:/docker-entrypoint-initdb.d/opencdmp_init.sql
|
||||||
networks:
|
networks:
|
||||||
- opencdmp-postgres-shared-network
|
- opencdmp-postgres-shared-network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
@ -168,22 +168,22 @@ services:
|
||||||
opencdmp.elasticsearch:
|
opencdmp.elasticsearch:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
cpus: 2
|
cpus: 2
|
||||||
mem_limit: 1024m
|
mem_limit: 2048m
|
||||||
env_file:
|
env_file:
|
||||||
- ${CONFIG_FILES_PATH}elk/elk.env
|
- ${CONFIG_FILES_PATH}/elk/elk.env
|
||||||
environment:
|
environment:
|
||||||
ES_JAVA_OPTS: -Xmx512m -Xms512m
|
ES_JAVA_OPTS: -Xmx1024m -Xms1024m
|
||||||
ulimits:
|
ulimits:
|
||||||
nproc: 65535
|
nproc: 65535
|
||||||
memlock:
|
memlock:
|
||||||
soft: -1
|
soft: -1
|
||||||
hard: -1
|
hard: -1
|
||||||
volumes:
|
volumes:
|
||||||
- ${CONFIG_FILES_PATH}elk/elasticsearch/index_init.sh:/usr/share/elasticsearch/config/index_init.sh
|
- ${CONFIG_FILES_PATH}/elk/elasticsearch/index_init.sh:/usr/share/elasticsearch/config/index_init.sh
|
||||||
- ${CONFIG_FILES_PATH}elk/elasticsearch/log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties:ro
|
- ${CONFIG_FILES_PATH}/elk/elasticsearch/log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties:ro
|
||||||
- ${CONFIG_FILES_PATH}elk/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
|
- ${CONFIG_FILES_PATH}/elk/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
|
||||||
- ${STORAGE_PATH}elasticsearch:/usr/share/elasticsearch/data
|
- ${STORAGE_PATH}/elasticsearch:/usr/share/elasticsearch/data
|
||||||
- ${LOG_FILES_PATH}elasticsearch:/usr/share/elasticsearch/logs
|
- ${LOG_FILES_PATH}/elasticsearch:/usr/share/elasticsearch/logs
|
||||||
expose:
|
expose:
|
||||||
- "9200"
|
- "9200"
|
||||||
- "9300"
|
- "9300"
|
||||||
|
@ -202,13 +202,13 @@ services:
|
||||||
cpus: 2
|
cpus: 2
|
||||||
mem_limit: 2048M
|
mem_limit: 2048M
|
||||||
env_file:
|
env_file:
|
||||||
- ${CONFIG_FILES_PATH}keycloak/keycloak.env
|
- ${CONFIG_FILES_PATH}/keycloak/keycloak.env
|
||||||
environment:
|
environment:
|
||||||
- JAVA_OPTS_APPEND="-Djava.net.preferIPv4Stack=true"
|
- JAVA_OPTS_APPEND="-Djava.net.preferIPv4Stack=true"
|
||||||
volumes:
|
volumes:
|
||||||
- ${LOG_FILES_PATH}keycloak:/tmp/logs
|
- ${LOG_FILES_PATH}/keycloak:/tmp/logs
|
||||||
- ${CONFIG_FILES_PATH}keycloak/user_init.sh:/tmp/user_init.sh
|
- ${CONFIG_FILES_PATH}/keycloak/user_init.sh:/tmp/user_init.sh
|
||||||
- ${CONFIG_FILES_PATH}keycloak/imports/opencdmp-realm.json:/opt/keycloak/data/import/opencdmp-realm.json
|
- ${CONFIG_FILES_PATH}/keycloak/imports/opencdmp-realm.json:/opt/keycloak/data/import/opencdmp-realm.json
|
||||||
expose:
|
expose:
|
||||||
- "8080"
|
- "8080"
|
||||||
networks:
|
networks:
|
||||||
|
@ -227,9 +227,9 @@ services:
|
||||||
- "0.0.0.0:15672:15672"
|
- "0.0.0.0:15672:15672"
|
||||||
- "0.0.0.0:5672:5672"
|
- "0.0.0.0:5672:5672"
|
||||||
env_file:
|
env_file:
|
||||||
- ${CONFIG_FILES_PATH}rabbitmq/rabbitmq.env
|
- ${CONFIG_FILES_PATH}/rabbitmq/rabbitmq.env
|
||||||
volumes:
|
volumes:
|
||||||
- ${CONFIG_FILES_PATH}rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
|
- ${CONFIG_FILES_PATH}/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
|
||||||
networks:
|
networks:
|
||||||
- opencdmp-rabbitmq-shared-network
|
- opencdmp-rabbitmq-shared-network
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ services:
|
||||||
- "3000"
|
- "3000"
|
||||||
hostname: pdf-service
|
hostname: pdf-service
|
||||||
env_file:
|
env_file:
|
||||||
- ${CONFIG_FILES_PATH}pdf-service/pdf-service.env
|
- ${CONFIG_FILES_PATH}/pdf-service/pdf-service.env
|
||||||
networks:
|
networks:
|
||||||
- opencdmp-pdf-service-shared-network
|
- opencdmp-pdf-service-shared-network
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue