2024-04-25 10:48:25 +02:00
|
|
|
services:
|
|
|
|
############################## PROXY ########################################
|
2024-05-09 16:55:24 +02:00
|
|
|
opencdmp.proxy:
|
2024-04-25 16:59:42 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
cpus: 1
|
|
|
|
mem_limit: 256m
|
|
|
|
ports:
|
|
|
|
- "${PROXY_APP_PORT}:8081"
|
|
|
|
volumes:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${CONFIG_FILES_PATH}proxy/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
- ${CONFIG_FILES_PATH}proxy/ProxyNginx.conf:/etc/nginx/conf.d/default.conf
|
|
|
|
- ${LOG_FILES_PATH}proxy:/tmp/logs
|
2024-04-25 16:59:42 +02:00
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
- opencdmp-proxy-network
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-09-19 14:02:04 +02:00
|
|
|
############################## OPENCDMP APP #################################
|
2024-05-09 16:55:24 +02:00
|
|
|
opencdmp.backend:
|
2024-04-29 16:55:53 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
cpus: 1
|
|
|
|
mem_limit: 2048m
|
|
|
|
environment:
|
|
|
|
- PROFILE=${PROFILE}
|
|
|
|
ports:
|
2024-05-09 16:55:24 +02:00
|
|
|
- "0.0.0.0:50030:8080"
|
2024-04-29 16:55:53 +02:00
|
|
|
volumes:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/backend/config:/config
|
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/backend/certificates:/certificates
|
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/backend/i18n:/i18n
|
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/backend/material:/material
|
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/backend/Semantics.json:/Semantics.json
|
|
|
|
- ${STORAGE_PATH}opencdmp/backend:/storage
|
|
|
|
- ${LOG_FILES_PATH}opencdmp/backend:/logs
|
2024-04-29 16:55:53 +02:00
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
- opencdmp-proxy-network
|
|
|
|
- opencdmp-backend-network
|
|
|
|
- opencdmp-plugins-network
|
|
|
|
- opencdmp-elastic-shared-network
|
|
|
|
- opencdmp-keycloak-shared-network
|
|
|
|
- opencdmp-postgres-shared-network
|
|
|
|
- opencdmp-rabbitmq-shared-network
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-05-09 16:55:24 +02:00
|
|
|
opencdmp.frontend:
|
2024-04-29 16:55:53 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
cpus: 1
|
|
|
|
mem_limit: 2048m
|
|
|
|
ports:
|
2024-05-09 16:55:24 +02:00
|
|
|
- "0.0.0.0:50031:8080"
|
2024-04-29 16:55:53 +02:00
|
|
|
volumes:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${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/WebAppNginx.conf:/etc/nginx/conf.d/default.conf
|
2024-04-29 16:55:53 +02:00
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
- opencdmp-proxy-network
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-05-09 16:55:24 +02:00
|
|
|
opencdmp.notification:
|
2024-04-29 16:55:53 +02:00
|
|
|
cpus: 1
|
|
|
|
mem_limit: 1024m
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
2024-05-09 16:55:24 +02:00
|
|
|
- "0.0.0.0:50036:8080"
|
2024-04-29 16:55:53 +02:00
|
|
|
environment:
|
|
|
|
- PROFILE=${PROFILE}
|
|
|
|
volumes:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/notification/config:/config
|
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/notification/messages:/messages
|
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/notification/notification_templates:/notification_templates
|
|
|
|
- ${LOG_FILES_PATH}opencdmp/notification:/logs
|
2024-04-29 16:55:53 +02:00
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
- opencdmp-proxy-network
|
|
|
|
- opencdmp-backend-network
|
|
|
|
- opencdmp-rabbitmq-shared-network
|
|
|
|
- opencdmp-keycloak-shared-network
|
|
|
|
- opencdmp-postgres-shared-network
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-05-09 16:55:24 +02:00
|
|
|
opencdmp.annotation:
|
2024-04-29 16:55:53 +02:00
|
|
|
cpus: 1
|
|
|
|
mem_limit: 1024m
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
2024-05-09 16:55:24 +02:00
|
|
|
- "0.0.0.0:50035:8080"
|
2024-04-29 16:55:53 +02:00
|
|
|
environment:
|
|
|
|
- PROFILE=${PROFILE}
|
|
|
|
volumes:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/annotation/config:/config
|
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/annotation/messages:/messages
|
|
|
|
- ${LOG_FILES_PATH}opencdmp/annotation:/logs
|
2024-04-29 16:55:53 +02:00
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
- opencdmp-proxy-network
|
|
|
|
- opencdmp-backend-network
|
|
|
|
- opencdmp-rabbitmq-shared-network
|
|
|
|
- opencdmp-keycloak-shared-network
|
|
|
|
- opencdmp-postgres-shared-network
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-05-09 16:55:24 +02:00
|
|
|
# # ############################## FILE-TRANSFORMER #################################
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-05-09 16:55:24 +02:00
|
|
|
opencdmp.file.transformer.docx:
|
2024-04-29 16:55:53 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
cpus: 1
|
|
|
|
mem_limit: 1024m
|
|
|
|
expose:
|
|
|
|
- "8080"
|
|
|
|
environment:
|
|
|
|
- SERVER_PORT=${SERVER_PORT}
|
|
|
|
- PROFILE=${PROFILE}
|
|
|
|
volumes:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/file-transformer-docx/config:/config
|
|
|
|
- ${LOG_FILES_PATH}opencdmp/file-transformer-docx:/logs
|
|
|
|
# - ${STORAGE_PATH}opencdmp/file-transformer-docx:/storage
|
2024-04-29 16:55:53 +02:00
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
- opencdmp-plugins-network
|
2024-09-19 14:20:32 +02:00
|
|
|
- opencdmp-pdf-service-shared-network
|
2024-04-25 13:38:36 +02:00
|
|
|
|
2024-05-09 16:55:24 +02:00
|
|
|
opencdmp.file.transformer.rdajson:
|
2024-04-29 16:55:53 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
cpus: 1
|
|
|
|
mem_limit: 1024m
|
|
|
|
expose:
|
|
|
|
- "8080"
|
|
|
|
environment:
|
|
|
|
- SERVER_PORT=${SERVER_PORT}
|
|
|
|
- PROFILE=${PROFILE}
|
|
|
|
volumes:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/file-transformer-rda-json/config:/config
|
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/file-transformer-rda-json/internal:/internal
|
|
|
|
- ${LOG_FILES_PATH}opencdmp/file-transformer-rda-json:/logs
|
2024-04-29 16:55:53 +02:00
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
- opencdmp-plugins-network
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-05-09 16:55:24 +02:00
|
|
|
# ############################## ZENODO #######################################
|
|
|
|
opencdmp.zenodo:
|
2024-04-29 16:55:53 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
cpus: 1
|
|
|
|
mem_limit: 1024m
|
|
|
|
expose:
|
|
|
|
- "8080"
|
|
|
|
environment:
|
|
|
|
- PROFILE=${PROFILE}
|
|
|
|
volumes:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/zenodo/config:/config
|
|
|
|
- ${CONFIG_FILES_PATH}opencdmp/zenodo/zenodo.jpg:/zenodo.jpg
|
|
|
|
- ${LOG_FILES_PATH}opencdmp/zenodo:/logs
|
2024-04-29 16:55:53 +02:00
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
- opencdmp-plugins-network
|
|
|
|
- opencdmp-keycloak-shared-network
|
2024-04-25 10:48:25 +02:00
|
|
|
|
|
|
|
############################## POSTGRES 16 #################################
|
|
|
|
|
2024-05-13 15:30:25 +02:00
|
|
|
opencdmp.postgres:
|
|
|
|
restart: unless-stopped
|
|
|
|
mem_limit: 2048M
|
|
|
|
ports:
|
|
|
|
- "${POSTGRES_PORT}:5432"
|
|
|
|
env_file:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${CONFIG_FILES_PATH}postgres/postgres.env
|
2024-05-13 15:30:25 +02:00
|
|
|
volumes:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${STORAGE_PATH}postgres/data:/var/lib/postgresql/data
|
|
|
|
- ${CONFIG_FILES_PATH}postgres/opencdmp_init.sql:/docker-entrypoint-initdb.d/opencdmp_init.sql
|
2024-05-13 15:30:25 +02:00
|
|
|
networks:
|
|
|
|
- opencdmp-postgres-shared-network
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "sh -c 'pg_isready -U postgres -d opencdmp'"]
|
|
|
|
interval: 15s
|
|
|
|
timeout: 60s
|
2024-05-16 16:32:46 +02:00
|
|
|
retries: 5
|
2024-04-25 16:59:42 +02:00
|
|
|
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-04-29 16:55:53 +02:00
|
|
|
################################# ELASTICSEARCH #################################################
|
2024-05-09 16:55:24 +02:00
|
|
|
opencdmp.elasticsearch:
|
2024-04-29 16:55:53 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
cpus: 2
|
|
|
|
mem_limit: 1024m
|
|
|
|
env_file:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${CONFIG_FILES_PATH}elk/elk.env
|
2024-04-29 16:55:53 +02:00
|
|
|
environment:
|
|
|
|
ES_JAVA_OPTS: -Xmx512m -Xms512m
|
|
|
|
ulimits:
|
|
|
|
nproc: 65535
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
volumes:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${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/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
|
|
|
|
- ${STORAGE_PATH}elasticsearch:/usr/share/elasticsearch/data
|
|
|
|
- ${LOG_FILES_PATH}elasticsearch:/usr/share/elasticsearch/logs
|
2024-04-29 16:55:53 +02:00
|
|
|
expose:
|
|
|
|
- "9200"
|
|
|
|
- "9300"
|
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
- opencdmp-elastic-shared-network
|
2024-04-29 16:55:53 +02:00
|
|
|
healthcheck:
|
|
|
|
test: curl -s http://localhost:9200 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 5
|
2024-04-26 12:42:55 +02:00
|
|
|
|
2024-05-13 15:30:25 +02:00
|
|
|
#################################### KEYCLOAK ###############################################
|
|
|
|
opencdmp.keycloak:
|
|
|
|
restart: unless-stopped
|
|
|
|
command: ["start-dev", "--log=console,file", "--log-file=/tmp/logs/keycloak.log", "--import-realm"]
|
|
|
|
cpus: 2
|
|
|
|
mem_limit: 2048M
|
|
|
|
env_file:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${CONFIG_FILES_PATH}keycloak/keycloak.env
|
2024-05-13 15:30:25 +02:00
|
|
|
environment:
|
|
|
|
- JAVA_OPTS_APPEND="-Djava.net.preferIPv4Stack=true"
|
|
|
|
volumes:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${LOG_FILES_PATH}keycloak:/tmp/logs
|
|
|
|
- ${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
|
2024-05-13 15:30:25 +02:00
|
|
|
expose:
|
|
|
|
- "8080"
|
|
|
|
networks:
|
|
|
|
- opencdmp-proxy-network
|
|
|
|
- opencdmp-postgres-shared-network
|
|
|
|
- opencdmp-keycloak-shared-network
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-05-13 15:30:25 +02:00
|
|
|
################################# RABBITMQ ###############################################
|
2024-05-09 16:55:24 +02:00
|
|
|
opencdmp.rabbitmq:
|
2024-04-25 16:59:42 +02:00
|
|
|
labels:
|
|
|
|
NAME: "rabbitmq"
|
|
|
|
cpus: 1
|
|
|
|
mem_limit: 512m
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "0.0.0.0:15672:15672"
|
|
|
|
- "0.0.0.0:5672:5672"
|
|
|
|
env_file:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${CONFIG_FILES_PATH}rabbitmq/rabbitmq.env
|
2024-04-25 16:59:42 +02:00
|
|
|
volumes:
|
2024-09-19 14:02:04 +02:00
|
|
|
- ${CONFIG_FILES_PATH}rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
|
2024-04-25 16:59:42 +02:00
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
- opencdmp-rabbitmq-shared-network
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-09-19 14:20:32 +02:00
|
|
|
################################# PDF SERVICE ##############################################
|
2024-09-19 14:02:04 +02:00
|
|
|
opencdmp.pdf-service:
|
2024-04-29 16:55:53 +02:00
|
|
|
cpus: 2
|
2024-04-25 16:59:42 +02:00
|
|
|
mem_limit: 2048m
|
|
|
|
restart: unless-stopped
|
|
|
|
expose:
|
|
|
|
- "3000"
|
2024-09-19 14:20:32 +02:00
|
|
|
hostname: pdf-service
|
2024-04-25 16:59:42 +02:00
|
|
|
env_file:
|
2024-09-19 14:20:32 +02:00
|
|
|
- ${CONFIG_FILES_PATH}pdf-service/pdf-service.env
|
2024-04-25 16:59:42 +02:00
|
|
|
networks:
|
2024-09-19 14:20:32 +02:00
|
|
|
- opencdmp-pdf-service-shared-network
|
2024-04-25 10:48:25 +02:00
|
|
|
|
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
opencdmp-proxy-network:
|
|
|
|
name: opencdmp-proxy-network
|
|
|
|
opencdmp-backend-network:
|
|
|
|
name: opencdmp-backend-network
|
|
|
|
opencdmp-plugins-network:
|
|
|
|
name: opencdmp-plugins-network
|
|
|
|
opencdmp-keycloak-shared-network:
|
2024-04-25 13:38:36 +02:00
|
|
|
external: true
|
2024-05-09 16:55:24 +02:00
|
|
|
name: opencdmp-keycloak-shared-network
|
2024-09-19 14:20:32 +02:00
|
|
|
opencdmp-pdf-service-shared-network:
|
2024-04-25 13:38:36 +02:00
|
|
|
external: true
|
2024-09-19 14:20:32 +02:00
|
|
|
name: opencdmp-pdf-service-shared-network
|
2024-05-09 16:55:24 +02:00
|
|
|
opencdmp-rabbitmq-shared-network:
|
2024-04-25 13:38:36 +02:00
|
|
|
external: true
|
2024-05-09 16:55:24 +02:00
|
|
|
name: opencdmp-rabbitmq-shared-network
|
|
|
|
opencdmp-elastic-shared-network:
|
2024-04-25 13:38:36 +02:00
|
|
|
external: true
|
2024-05-09 16:55:24 +02:00
|
|
|
name: opencdmp-elastic-shared-network
|
|
|
|
opencdmp-postgres-shared-network:
|
2024-04-25 13:38:36 +02:00
|
|
|
external: true
|
2024-05-09 16:55:24 +02:00
|
|
|
name: opencdmp-postgres-shared-network
|