Finish Postgres initialization and deployment

This commit is contained in:
Alexandros Mandilaras 2024-04-25 14:38:36 +03:00
parent 21de37e980
commit 9fd28bbbf1
8 changed files with 347 additions and 328 deletions

View File

@ -1,7 +1,7 @@
###################### GENERAL ######################### ###################### GENERAL #########################
#User that is used to deploy the containers #User that is used to deploy the containers
DEPLOY_USER=root DEPLOY_USER=1000
DEPLOY_GROUP=1000
#version selections #version selections
PROXY_TAG=mainline-alpine PROXY_TAG=mainline-alpine
MAIN_APP_TAG=2.1.3 MAIN_APP_TAG=2.1.3
@ -10,10 +10,11 @@ ANNOTATION_APP_TAG=2.1.3
DOCX_APP_TAG=0.0.8 DOCX_APP_TAG=0.0.8
JSON_APP_TAG=0.0.6 JSON_APP_TAG=0.0.6
ZENODO_APP_TAG=2.0.4 ZENODO_APP_TAG=2.0.4
POSTGRES_TAG=16-alpine
ELK_VERSION=8.13.12 ELK_VERSION=8.13.12
KEYCLOAK_TAG=24.0.2 KEYCLOAK_TAG=24.0.2
RABBITMQ_TAG=3.13-management
GOTENBERG_TAG=8.4.0 GOTENBERG_TAG=8.4.0
POSTGRES_TAG=16-alpine
#Application configuration #Application configuration
DOCKER_REGISTRY=crepo.cite.gr/ DOCKER_REGISTRY=crepo.cite.gr/

View File

@ -1,153 +1,151 @@
version: "2.4"
services: services:
############################## PROXY ######################################## ############################## PROXY ########################################
opendmp.proxy: # opendmp.proxy:
user: ${DEPLOY_USER}:${DEPLOY_USER} # user: ${DEPLOY_USER}:${DEPLOY_GROUP}
restart: unless-stopped # restart: unless-stopped
cpus: 1 # cpus: 1
mem_limit: 256m # mem_limit: 256m
ports: # ports:
- "${PROXY_APP_PORT}:8081" # - "${PROXY_APP_PORT}:8081"
- "${PROXY_MS_PORT}:8082" # - "${PROXY_MS_PORT}:8082"
env_file: # env_file:
- /proxy/proxy.env # - proxy/proxy.env
volumes: # volumes:
- /proxy/nginx.conf:/etc/nginx/nginx.conf # - proxy/nginx.conf:/etc/nginx/nginx.conf
- /proxy/ProxyNginx.conf:/etc/nginx/conf.d/default.conf # - proxy/ProxyNginx.conf:/etc/nginx/conf.d/default.conf
- /proxy/nginx-selfsigned.crt:/certifcates/cert.crt # - proxy/nginx-selfsigned.crt:/certifcates/cert.crt
- /proxy/nginx-selfsigned.key:/certifcates/key.key # - proxy/nginx-selfsigned.key:/certifcates/key.key
- /logs/proxy:/tmp/logs # - logs/proxy:/tmp/logs
networks: # networks:
- opendmp-proxy-network # - opendmp-proxy-network
############################## OPENDMP APP ################################# ############################## OPENDMP APP #################################
opendmp.backend: # opendmp.backend:
user: ${DEPLOY_USER}:${DEPLOY_USER} # user: ${DEPLOY_USER}:${DEPLOY_GROUP}
restart: unless-stopped # restart: unless-stopped
cpus: 1 # cpus: 1
mem_limit: 2048m # mem_limit: 2048m
environment: # environment:
- PROFILE=${PROFILE} # - PROFILE=${PROFILE}
ports: # ports:
- "8080" # - "8080"
volumes: # volumes:
- /opendmp/backend/config:/config # - opendmp/backend/config:/config
- /opendmp/backend/certificates:/certificates # - opendmp/backend/certificates:/certificates
- /opendmp/backend/i18n:/i18n # - opendmp/backend/i18n:/i18n
- /opendmp/backend/material:/material # - opendmp/backend/material:/material
- /opendmp/backend/Semantics.json:/Semantics.json # - opendmp/backend/Semantics.json:/Semantics.json
- /storage/backend:/storage # - storage/backend:/storage
- /logs/backend:/logs # - logs/backend:/logs
networks: # networks:
- opendmp-proxy-network # - opendmp-proxy-network
- opendmp-backend-network # - opendmp-backend-network
- opendmp-plugins-network # - opendmp-plugins-network
- opendmp-gotenberg-shared-network # - opendmp-gotenberg-shared-network
- opendmp-elastic-shared-network # - opendmp-elastic-shared-network
- opendmp-keycloak-shared-network # - opendmp-keycloak-shared-network
- opendmp-postgres-shared-network # - opendmp-postgres-shared-network
- opendmp-rabbitmq-shared-network # - opendmp-rabbitmq-shared-network
opendmp.frontend: # opendmp.frontend:
restart: unless-stopped # restart: unless-stopped
cpus: 1 # cpus: 1
mem_limit: 2048m # mem_limit: 2048m
ports: # ports:
- "8080" # - "8080"
volumes: # volumes:
- /opendmp/webapp/config.json:/usr/share/nginx/html/assets/config/config.json # - opendmp/webapp/config.json:/usr/share/nginx/html/assets/config/config.json
- /opendmp/webapp/nginx.conf:/etc/nginx/nginx.conf # - opendmp/webapp/nginx.conf:/etc/nginx/nginx.conf
- /opendmp/webapp/WebAppNginx.conf:/etc/nginx/conf.d/default.conf # - opendmp/webapp/WebAppNginx.conf:/etc/nginx/conf.d/default.conf
networks: # networks:
- opendmp-proxy-network # - opendmp-proxy-network
opendmp.notification: # opendmp.notification:
user: ${DEPLOY_USER}:${DEPLOY_USER} # user: ${DEPLOY_USER}:${DEPLOY_GROUP}
cpus: 1 # cpus: 1
mem_limit: 1024m # mem_limit: 1024m
restart: unless-stopped # restart: unless-stopped
ports: # ports:
- "8080" # - "8080"
environment: # environment:
- PROFILE=${PROFILE} # - PROFILE=${PROFILE}
volumes: # volumes:
- /opendmp/notification-api/config:/config # - opendmp/notification-api/config:/config
- /opendmp/notification-api/messages:/messages # - opendmp/notification-api/messages:/messages
- /opendmp/notification-api/notification_templates:/notification_templates # - opendmp/notification-api/notification_templates:/notification_templates
- /logs/notification-api:/logs # - logs/notification-api:/logs
networks: # networks:
- opendmp-proxy-network # - opendmp-proxy-network
- opendmp-backend-network # - opendmp-backend-network
- opendmp-plugins-network # - opendmp-plugins-network
- opendmp-rabbitmq-shared-network # - opendmp-rabbitmq-shared-network
- opendmp-keycloak-shared-network # - opendmp-keycloak-shared-network
- opendmp-postgres-shared-network # - opendmp-postgres-shared-network
opendmp.annotation: # opendmp.annotation:
user: ${DEPLOY_USER}:${DEPLOY_USER} # user: ${DEPLOY_USER}:${DEPLOY_GROUP}
cpus: 1 # cpus: 1
mem_limit: 1024m # mem_limit: 1024m
restart: unless-stopped # restart: unless-stopped
ports: # ports:
- "8080" # - "8080"
environment: # environment:
- PROFILE=${PROFILE} # - PROFILE=${PROFILE}
volumes: # volumes:
- /opendmp/annotation-api/config:/config # - opendmp/annotation-api/config:/config
- /opendmp/annotation-api/messages:/messages # - opendmp/annotation-api/messages:/messages
- /logs/annotation-api:/logs # - logs/annotation-api:/logs
networks: # networks:
- opendmp-proxy-network # - opendmp-proxy-network
- opendmp-backend-network # - opendmp-backend-network
- opendmp-plugins-network # - opendmp-plugins-network
- opendmp-rabbitmq-shared-network # - opendmp-rabbitmq-shared-network
- opendmp-keycloak-shared-network # - opendmp-keycloak-shared-network
- opendmp-postgres-shared-network # - opendmp-postgres-shared-network
############################## FILE-TRANSFORMER ################################# # ############################## FILE-TRANSFORMER #################################
opendmp.file.transformer.docx: # opendmp.file.transformer.docx:
user: ${DEPLOY_USER}:${DEPLOY_USER} # user: ${DEPLOY_USER}:${DEPLOY_GROUP}
restart: unless-stopped # restart: unless-stopped
cpus: 1 # cpus: 1
mem_limit: 1024m # mem_limit: 1024m
expose: # expose:
- "8080" # - "8080"
environment: # environment:
- SERVER_PORT=${SERVER_PORT} # - SERVER_PORT=${SERVER_PORT}
- PROFILE=${PROFILE} # - PROFILE=${PROFILE}
volumes: # volumes:
- /opendmp/file-transformer-docx/config:/config # - opendmp/file-transformer-docx/config:/config
- /logs/file-transformer-docx:/logs # - logs/file-transformer-docx:/logs
- /storage/file-transformer-docx:/storage # - storage/file-transformer-docx:/storage
networks: # networks:
- opendmp-backend-network # - opendmp-backend-network
- opendmp-plugins-network # - opendmp-plugins-network
- opendmp-gotenberg-shared-network # - opendmp-gotenberg-shared-network
opendmp.file.transformer.rdajson: # opendmp.file.transformer.rdajson:
user: ${DEPLOY_USER}:${DEPLOY_USER} # user: ${DEPLOY_USER}:${DEPLOY_GROUP}
restart: unless-stopped # restart: unless-stopped
cpus: 1 # cpus: 1
mem_limit: 1024m # mem_limit: 1024m
expose: # expose:
- "8080" # - "8080"
environment: # environment:
- SERVER_PORT=${SERVER_PORT} # - SERVER_PORT=${SERVER_PORT}
- PROFILE=${PROFILE} # - PROFILE=${PROFILE}
volumes: # volumes:
- /opendmp/file-transformer-rda-json/config:/config # - opendmp/file-transformer-rda-json/config:/config
- /opendmp/file-transformer-rda-json/internal:/internal # - opendmp/file-transformer-rda-json/internal:/internal
- /logs/file-transformer-rda-json:/logs # - logs/file-transformer-rda-json:/logs
- /storage/file-transformer-rda-json:/storage # - storage/file-transformer-rda-json:/storage
networks: # networks:
- opendmp-backend-network # - opendmp-backend-network
- opendmp-plugins-network # - opendmp-plugins-network
############################## ZENODO ####################################### ############################## ZENODO #######################################
# opendmp.zenodo: # opendmp.zenodo:
# user: ${DEPLOY_USER}:${DEPLOY_USER} # user: ${DEPLOY_USER}:${DEPLOY_GROUP}
# restart: unless-stopped # restart: unless-stopped
# cpus: 1 # cpus: 1
# mem_limit: 1024m # mem_limit: 1024m
@ -166,79 +164,77 @@ services:
############################## POSTGRES 16 ################################# ############################## POSTGRES 16 #################################
opendmp.postgres: opendmp.postgres:
user: ${DEPLOY_USER}:${DEPLOY_USER} user: ${DEPLOY_USER}:${DEPLOY_GROUP}
restart: unless-stopped restart: unless-stopped
mem_limit: 2048M mem_limit: 2048M
ports: ports:
# - "127.0.0.1:${POSTGRES_PORT}:5432" # - "127.0.0.1:${POSTGRES_PORT}:5432" # If you want to make it accessible locally only
- "${POSTGRES_PORT}:5432" - "${POSTGRES_PORT}:5432"
env_file: env_file:
- postgres/postgres.env - postgres/postgres.env
volumes: volumes:
- /postgres/opendmp_init.sql:/docker-entrypoint-initdb.d/opendmp_init.sql - ./storage/postgres/data:/var/lib/postgresql/data
- /postgres/keycloak_init.sql:/docker-entrypoint-initdb.d/keycloak_init.sql
- /storage/postgres/data:/var/lib/postgresql/data
networks: networks:
- opendmp-keycloak-shared-network - opendmp-postgres-shared-network
################################# ELK ################################################# ################################# ELK #################################################
opendmp.elasticsearch: # opendmp.elasticsearch:
user: ${DEPLOY_USER}:${DEPLOY_USER} # user: ${DEPLOY_USER}:${DEPLOY_GROUP}
group_add: # group_add:
- 0 # - 0
restart: unless-stopped # restart: unless-stopped
cpus: 2 # cpus: 2
mem_limit: 1024m # mem_limit: 1024m
env_file: # env_file:
- /elk/config-elk/elasticsearch/elastic.env # - elk/config-elk/elasticsearch/elastic.env
environment: # environment:
- "ES_JAVA_OPTS=-Xmx512m -Xms512m" # - "ES_JAVA_OPTS=-Xmx512m -Xms512m"
ulimits: # ulimits:
nproc: 65535 # nproc: 65535
memlock: # memlock:
soft: -1 # soft: -1
hard: -1 # hard: -1
volumes: # volumes:
- /elk/config-elk/elasticsearch/certificates:/usr/share/elasticsearch/config/certificates # - elk/config-elk/elasticsearch/certificates:/usr/share/elasticsearch/config/certificates
- /elk/config-elk/elasticsearch/config/log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties:ro # - elk/config-elk/elasticsearch/config/log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties:ro
- /elk/config-elk/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro # - elk/config-elk/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- /elk/data-elk/elasticsearch-data:/usr/share/elasticsearch/data # - elk/data-elk/elasticsearch-data:/usr/share/elasticsearch/data
- /elk/data-elk/elasticsearch-log:/usr/share/elasticsearch/logs # - elk/data-elk/elasticsearch-log:/usr/share/elasticsearch/logs
expose: # expose:
- "9200" # - "9200"
- "9300" # - "9300"
networks: # networks:
- opendmp-elastic-network # - opendmp-elastic-network
- opendmp-elastic-shared-network # - opendmp-elastic-shared-network
healthcheck: # healthcheck:
test: curl --cacert /usr/share/elasticsearch/config/certificates/ca/ca.crt -s https://localhost:9200 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi # test: curl --cacert /usr/share/elasticsearch/config/certificates/ca/ca.crt -s https://localhost:9200 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi
interval: 30s # interval: 30s
timeout: 10s # timeout: 10s
retries: 5 # retries: 5
# opendmp.logstash: # # opendmp.logstash:
# volumes: # # volumes:
# - /elk/data-elk/logstash-log:/usr/share/logstash/logs # # - /elk/data-elk/logstash-log:/usr/share/logstash/logs
opendmp.kibana: # opendmp.kibana:
user: ${DEPLOY_USER}:${DEPLOY_USER} # user: ${DEPLOY_USER}:${DEPLOY_GROUP}
restart: unless-stopped # restart: unless-stopped
cpus: 2 # cpus: 2
mem_limit: 1024m # mem_limit: 1024m
environment: # environment:
- xpack.license.self_generated.type=basic # - xpack.license.self_generated.type=basic
- xpack.security.enabled=true # - xpack.security.enabled=true
volumes: # volumes:
- /elk/config-elk/kibana/certificates:/usr/share/kibana/certificates # - elk/config-elk/kibana/certificates:/usr/share/kibana/certificates
- /elk/config-elk/kibana/certificates/ca:/usr/share/kibana/certificate_authorities # - elk/config-elk/kibana/certificates/ca:/usr/share/kibana/certificate_authorities
- /elk/config-elk/kibana/config:/usr/share/kibana/config:ro # - elk/config-elk/kibana/config:/usr/share/kibana/config:ro
expose: # expose:
- "5601" # - "5601"
networks: # networks:
- opendmp-elastic-network # - opendmp-elastic-network
# # opendmp.filebeat:
# opendmp.filebeat:
############################## KEYCLOAK ############################################### ############################## KEYCLOAK ###############################################
opendmp.keycloak: opendmp.keycloak:
@ -249,66 +245,72 @@ services:
security_opt: security_opt:
- seccomp:unconfined - seccomp:unconfined
env_file: env_file:
- /keycloak/keycloak.env - keycloak/keycloak.env
environment: environment:
- JAVA_OPTS_APPEND="-Djava.net.preferIPv4Stack=true" - JAVA_OPTS_APPEND="-Djava.net.preferIPv4Stack=true"
volumes: volumes:
- /logs/keycloak:/tmp/logs - logs/keycloak:/tmp/logs
- /keycloak/imports/opendmp-realm.json:/opt/keycloak/data/import/opendmp-realm.json - keycloak/imports/opendmp-realm.json:/opt/keycloak/data/import/opendmp-realm.json
- /keycloak/certs/keycloak-selfsigned.crt:/tmp/keycloak-selfsigned.crt:ro - keycloak/certs/keycloak-selfsigned.crt:/tmp/keycloak-selfsigned.crt:ro
- /keycloak/certs/keycloak-selfsigned.key:/tmp/keycloak-selfsigned.key:ro - keycloak/certs/keycloak-selfsigned.key:/tmp/keycloak-selfsigned.key:ro
expose: expose:
- "8443" - "8443"
networks: networks:
- opendmp-proxy-network - opendmp-proxy-network
- opendmp-postgres-shared-network
- opendmp-keycloak-shared-network - opendmp-keycloak-shared-network
############################## RABBITMQ ############################################### # ############################## RABBITMQ ###############################################
opendmp.rabbitmq: # opendmp.rabbitmq:
labels: # labels:
NAME: "rabbitmq" # NAME: "rabbitmq"
cpus: 1 # cpus: 1
mem_limit: 512m # mem_limit: 512m
restart: unless-stopped # restart: unless-stopped
expose: # expose:
- "15672" # - "15672"
- "5672" # - "5672"
env_file: # env_file:
- /rabbitmq/rabbitmq.env # - rabbitmq/rabbitmq.env
# volumes: # # volumes:
# - /rabbitmq/rabbitmq.config:/etc/rabbitmq/rabbitmq.config:ro # # - /rabbitmq/rabbitmq.config:/etc/rabbitmq/rabbitmq.config:ro
networks: # networks:
- opendmp-proxy-network # - opendmp-proxy-network
- opendmp-rabbitmq-shared-network # - opendmp-rabbitmq-shared-network
############################## GOTENBERG ############################################## # ############################## GOTENBERG ##############################################
opendmo.gotenberg: # opendmp.gotenberg:
mem_limit: 2048m # mem_limit: 2048m
restart: unless-stopped # restart: unless-stopped
expose: # expose:
- "3000" # - "3000"
hostname: gotenberg # hostname: gotenberg
env_file: # env_file:
- /gotenberg/gotenberg.env # - gotenberg/gotenberg.env
networks: # networks:
- opendmp-gotenberg-shared-network # - opendmp-gotenberg-shared-network
networks: networks:
opendmp-elastic-network:
name: opendmp-elastic-network
opendmp-proxy-network: opendmp-proxy-network:
name: opendmp-proxy-network
opendmp-backend-network: opendmp-backend-network:
name: opendmp-backend-network
opendmp-plugins-network: opendmp-plugins-network:
name: opendmp-plugins-network
opendmp-keycloak-shared-network: opendmp-keycloak-shared-network:
external: external: true
name: opendmp-keycloak-shared-network name: opendmp-keycloak-shared-network
opendmp-gotenberg-shared-network: opendmp-gotenberg-shared-network:
external: external: true
name: opendmp-gotenberg-shared-network name: opendmp-gotenberg-shared-network
opendmp-rabbitmq-shared-network: opendmp-rabbitmq-shared-network:
external: external: true
name: opendmp-rabbitmq-shared-network name: opendmp-rabbitmq-shared-network
opendmp-elastic-shared-network: opendmp-elastic-shared-network:
external: external: true
name: opendmp-elastic-shared-network name: opendmp-elastic-shared-network
opendmp-postgres-shared-network: opendmp-postgres-shared-network:
external: external: true
name: opendmp-postgres-shared-network name: opendmp-postgres-shared-network

View File

@ -1,52 +1,50 @@
version: "2.4"
services: services:
############################## PROXY ######################################## ############################## PROXY ########################################
opendmp.proxy: # opendmp.proxy:
container_name: opendmp.proxy # container_name: opendmp.proxy
image: nginx:${PROXY_TAG} # image: nginx:${PROXY_TAG}
############################## OPENDMP APP ################################# # ############################## OPENDMP APP #################################
opendmp.frontend: # opendmp.frontend:
container_name: opendmp.frontend # container_name: opendmp.frontend
image: ${DOCKER_REGISTRY}open-dmp-webapp:${MAIN_APP_TAG} # image: ${DOCKER_REGISTRY}open-dmp-webapp:${MAIN_APP_TAG}
depends_on: # depends_on:
- opendmp.backend # - opendmp.backend
- opendmp.notification # - opendmp.notification
- opendmp.annotation # - opendmp.annotation
opendmp.backend: # opendmp.backend:
container_name: opendmp.backend # container_name: opendmp.backend
image: ${DOCKER_REGISTRY}open-dmp-api:${MAIN_APP_TAG} # image: ${DOCKER_REGISTRY}open-dmp-api:${MAIN_APP_TAG}
depends_on: # depends_on:
- opendmp.postgres # - opendmp.postgres
opendmp.notification: # opendmp.notification:
container_name: opendmp.notification # container_name: opendmp.notification
image: ${DOCKER_REGISTRY}open-dmp-notification-api:${NOTIFICATION_APP_TAG} # image: ${DOCKER_REGISTRY}open-dmp-notification-api:${NOTIFICATION_APP_TAG}
depends_on: # depends_on:
- opendmp.postgres # - opendmp.postgres
opendmp.annotation: # opendmp.annotation:
container_name: opendmp.annotation # container_name: opendmp.annotation
image: ${DOCKER_REGISTRY}open-dmp-annotation-api:${ANNOTATION_APP_TAG} # image: ${DOCKER_REGISTRY}open-dmp-annotation-api:${ANNOTATION_APP_TAG}
depends_on: # depends_on:
- opendmp.postgres # - opendmp.postgres
############################## FILE-TRANSFORMERS ####################################### # ############################## FILE-TRANSFORMERS #######################################
opendmp.file.transformer.docx: # opendmp.file.transformer.docx:
container_name: opendmp.file.transformer.docx # container_name: opendmp.file.transformer.docx
image: ${DOCKER_REGISTRY}file-transformation-docx-api:${DOCX_APP_TAG} # image: ${DOCKER_REGISTRY}file-transformation-docx-api:${DOCX_APP_TAG}
depends_on: # depends_on:
- opendmp.backend # - opendmp.backend
opendmp.file.transformer.rdajson: # opendmp.file.transformer.rdajson:
container_name: opendmp.file.transformer.rdajson # container_name: opendmp.file.transformer.rdajson
image: ${DOCKER_REGISTRY}file-transformation-rda-json-api:${JSON_APP_TAG} # image: ${DOCKER_REGISTRY}file-transformation-rda-json-api:${JSON_APP_TAG}
depends_on: # depends_on:
- opendmp.backend # - opendmp.backend
################################ ZENODO ############################################### ################################ ZENODO ###############################################
# opendmp.zenodo: # opendmp.zenodo:
@ -59,57 +57,61 @@ services:
opendmp.postgres: opendmp.postgres:
container_name: opendmp.postgres container_name: opendmp.postgres
image: postgres:${POSTGRES_TAG} image: postgres:${POSTGRES_TAG}
build:
context: ./postgres/
args:
POSTGRES_TAG: $POSTGRES_TAG
################################# ELK ################################################# ################################# ELK #################################################
opendmp.elasticsearch: # opendmp.elasticsearch:
container_name: opendmp.elasticsearch # container_name: opendmp.elasticsearch
image: elasticsearch # image: elasticsearch
build: # build:
context: /elk/elasticsearch/ # context: /elk/elasticsearch/
args: # args:
ELK_VERSION: $ELK_VERSION # ELK_VERSION: $ELK_VERSION
# opendmp.logstash: # # opendmp.logstash:
# container_name: opendmp.logstash # # container_name: opendmp.logstash
# image: logstash # # image: logstash
# build: # # build:
# context: /elk/logstash/ # # context: /elk/logstash/
# args: # # args:
# ELK_VERSION: $ELK_VERSION # # ELK_VERSION: $ELK_VERSION
# depends_on: # # depends_on:
# - opendmp.elasticsearch # # - opendmp.elasticsearch
opendmp.kibana: # opendmp.kibana:
container_name: opendmp.kibana # container_name: opendmp.kibana
image: kibana # image: kibana
build: # build:
context: /elk/kibana/ # context: /elk/kibana/
args: # args:
ELK_VERSION: $ELK_VERSION # ELK_VERSION: $ELK_VERSION
depends_on: # depends_on:
- opendmp.elasticsearch # - opendmp.elasticsearch
# opendmp.filebeat: # # opendmp.filebeat:
# container_name: opendmp.filebeat # # container_name: opendmp.filebeat
# image: filebeat # # image: filebeat
# build: # # build:
# context: /elk/filebeat/ # # context: /elk/filebeat/
# args: # # args:
# ELK_VERSION: $ELK_VERSION # # ELK_VERSION: $ELK_VERSION
# depends_on: # # depends_on:
# - opendmp.logstash # # - opendmp.logstash
############################## KEYCLOAK ############################################### ############################## KEYCLOAK ###############################################
opendmp.keycloak: opendmp.keycloak:
container_name: opendmp.keycloak container_name: opendmp.keycloak
image: quay.io/keycloak/keycloak:${KEYCLOAK_TAG} image: quay.io/keycloak/keycloak:${KEYCLOAK_TAG}
############################## RABBITMQ ############################################### # ############################## RABBITMQ ###############################################
opendmp.rabbitmq: # opendmp.rabbitmq:
container_name: opendmp.rabbitmq # container_name: opendmp.rabbitmq
image: rabbitmq:${RABBITMQ_TAG} # image: rabbitmq:${RABBITMQ_TAG}
############################## GOTENBERG ############################################## # ############################## GOTENBERG ##############################################
opendmp.gotenberg: # opendmp.gotenberg:
image: gotenberg/gotenberg:${GOTENBERG_TAG} # image: gotenberg/gotenberg:${GOTENBERG_TAG}
container_name: opendmp.gotenberg # container_name: opendmp.gotenberg

View File

@ -0,0 +1,10 @@
ARG POSTGRES_TAG
ARG DEPLOY_USER
ARG DEPLOY_GROUP
FROM postgres:${POSTGRES_TAG}
COPY ./opendmp_init.sql /docker-entrypoint-initdb.d/
COPY ./keycloak_init.sql /docker-entrypoint-initdb.d/
COPY ./user_init.sql /docker-entrypoint-initdb.d/
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 5432
CMD ["postgres"]

Binary file not shown.

View File

@ -1,4 +1,4 @@
#################### POSTGRES ######################## #################### POSTGRES ########################
#POSTGRES_DB=keycloak POSTGRES_USER=postgres
POSTGRES_USER=admin POSTGRES_PASSWORD=changeme
POSTGRES_PASSWORD=changeme PGDATA=/var/lib/postgresql/data/

View File

@ -0,0 +1,4 @@
CREATE USER keycloak_psql WITH PASSWORD 'keycloak-admin';
ALTER DATABASE keycloak OWNER TO keycloak_psql;
CREATE USER opendmp_psql WITH PASSWORD 'opendmp-admin';
ALTER DATABASE "opendmp-test" OWNER TO opendmp_psql;