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:
|
|
|
|
- ./proxy/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
- ./proxy/ProxyNginx.conf:/etc/nginx/conf.d/default.conf
|
|
|
|
- ./logs/proxy:/tmp/logs
|
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
- opencdmp-proxy-network
|
2024-04-25 10:48:25 +02:00
|
|
|
|
|
|
|
############################## OPENDMP 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-05-09 16:55:24 +02:00
|
|
|
- ./opencdmp/backend/config:/config
|
|
|
|
- ./opencdmp/backend/certificates:/certificates
|
|
|
|
- ./opencdmp/backend/i18n:/i18n
|
|
|
|
- ./opencdmp/backend/material:/material
|
|
|
|
- ./opencdmp/backend/Semantics.json:/Semantics.json
|
|
|
|
- ./storage/opencdmp/backend:/storage
|
|
|
|
- ./logs/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-05-09 16:55:24 +02:00
|
|
|
- ./opencdmp/frontend/config.json:/usr/share/nginx/html/assets/config/config.json
|
|
|
|
- ./opencdmp/frontend/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
- ./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-05-09 16:55:24 +02:00
|
|
|
- ./opencdmp/notification/config:/config
|
|
|
|
- ./opencdmp/notification/messages:/messages
|
|
|
|
- ./opencdmp/notification/notification_templates:/notification_templates
|
|
|
|
- ./logs/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-05-09 16:55:24 +02:00
|
|
|
- ./opencdmp/annotation/config:/config
|
|
|
|
- ./opencdmp/annotation/messages:/messages
|
|
|
|
- ./logs/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-05-09 16:55:24 +02:00
|
|
|
- ./opencdmp/file-transformer-docx/config:/config
|
|
|
|
- ./logs/opencdmp/file-transformer-docx:/logs
|
|
|
|
- ./storage/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
|
|
|
|
- opencdmp-gotenberg-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-05-09 16:55:24 +02:00
|
|
|
- ./opencdmp/file-transformer-rda-json/config:/config
|
|
|
|
- ./opencdmp/file-transformer-rda-json/internal:/internal
|
|
|
|
- ./logs/opencdmp/file-transformer-rda-json:/logs
|
|
|
|
- ./storage/opencdmp/file-transformer-rda-json:/storage
|
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-05-09 16:55:24 +02:00
|
|
|
- ./opencdmp/zenodo/config:/config
|
|
|
|
- ./opencdmp/zenodo/zenodo.jpg:/zenodo.jpg
|
|
|
|
- ./storage/opencdmp/zenodo:/storage
|
|
|
|
- ./logs/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:
|
|
|
|
# - "127.0.0.1:${POSTGRES_PORT}:5432" # If you want to make it accessible locally only
|
|
|
|
- "${POSTGRES_PORT}:5432"
|
|
|
|
env_file:
|
|
|
|
- ./postgres/postgres.env
|
|
|
|
volumes:
|
|
|
|
- ./storage/postgres/data:/var/lib/postgresql/data
|
|
|
|
- ./postgres/opencdmp_init.sql:/docker-entrypoint-initdb.d/opencdmp_init.sql
|
|
|
|
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-05-09 16:55:24 +02:00
|
|
|
- ./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:
|
|
|
|
- ./elk/elasticsearch/index_init.sh:/usr/share/elasticsearch/config/index_init.sh
|
|
|
|
- ./elk/elasticsearch/log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties:ro
|
|
|
|
- ./elk/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
|
|
|
|
- ./storage/elasticsearch:/usr/share/elasticsearch/data
|
|
|
|
- ./logs/elasticsearch:/usr/share/elasticsearch/logs
|
|
|
|
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:
|
|
|
|
- ./keycloak/keycloak.env
|
|
|
|
environment:
|
|
|
|
- JAVA_OPTS_APPEND="-Djava.net.preferIPv4Stack=true"
|
|
|
|
volumes:
|
|
|
|
- ./logs/keycloak:/tmp/logs
|
2024-05-16 16:32:46 +02:00
|
|
|
- ./keycloak/user_init.sh:/tmp/user_init.sh
|
2024-05-13 15:30:25 +02:00
|
|
|
- ./keycloak/imports/opencdmp-realm.json:/opt/keycloak/data/import/opencdmp-realm.json
|
|
|
|
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-05-09 16:55:24 +02:00
|
|
|
- ./rabbitmq/rabbitmq.env
|
2024-04-25 16:59:42 +02:00
|
|
|
volumes:
|
|
|
|
- /rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
|
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
- opencdmp-rabbitmq-shared-network
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-05-13 15:30:25 +02:00
|
|
|
################################# GOTENBERG ##############################################
|
2024-05-09 16:55:24 +02:00
|
|
|
opencdmp.gotenberg:
|
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"
|
|
|
|
hostname: gotenberg
|
|
|
|
env_file:
|
2024-05-09 16:55:24 +02:00
|
|
|
- ./gotenberg/gotenberg.env
|
2024-04-25 16:59:42 +02:00
|
|
|
networks:
|
2024-05-09 16:55:24 +02:00
|
|
|
- opencdmp-gotenberg-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
|
|
|
|
opencdmp-gotenberg-shared-network:
|
2024-04-25 13:38:36 +02:00
|
|
|
external: true
|
2024-05-09 16:55:24 +02:00
|
|
|
name: opencdmp-gotenberg-shared-network
|
|
|
|
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
|