version: "3.8" services: dmp-db: image: postgres container_name: opendmp-db restart: unless-stopped ports: - "5001:5432" expose: - "5432" volumes: - dmpdata:/var/lib/postgresql/data - ./dmp-db-scema:/docker-entrypoint-initdb.d/ - ./dmp-db-scema/main:/main - ./dmp-db-scema/updates:/updates env_file: ./dmp-db-scema/Docker/dmp-db.env networks: - opendmp-backend-network dmp-pdf-converter: image: gotenberg/gotenberg:7.4.0 container_name: opendmp-pdf-converter restart: unless-stopped ports: - "3001:3000" expose: - "3000" hostname: opendmp-pdf networks: opendmp-pdf-network: aliases: - opendmp-pdf dmp-backend: build: context: ./dmp-backend container_name: opendmp-backend env_file: ./dmp-backend/Docker/dmp-backend.env restart: unless-stopped mem_limit: 2048m ports: - "8081:8081" expose: - "8080" networks: - opendmp-backend-network - opendmp-pdf-network - open-dmp-elk-network volumes: - ./dmp-backend/web/main/resources/config:/app/config - ./user-guide:/app/user-guide - ./dmp-frontend/src/assets/i18n:/app/i18n - ./dmp-backend/web/main/resources/externalUrls:/app/externalUrls - ./dmp-backend/web/main/resources/templates:/app/templates - ./openDMP/dmp-backend/opendmp-logs:/app/logs - ./openDMP/dmp-backend/tmp:/app/tmp - ./dmp-backend/web/main/resources/logging:/app/logging - ./dmp-backend/web/main/resources/documents:/app/documents dmp-frontend: build: context: ./dmp-frontend container_name: opendmp-frontend mem_limit: 2048m restart: unless-stopped ports: - "8080:4200" volumes: - ./openDMP/dmp-frontend/static-files:/usr/share/nginx/static - ./dmp-frontend/src/assets/config:/usr/share/nginx/html/assets/config networks: - opendmp-frontend-network elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION} container_name: elasticsearch build: context: ./ELK.Docker/elasticsearch/ args: ELK_VERSION: $ELK_VERSION 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 interval: 30s timeout: 10s retries: 5 logstash: image: docker.elastic.co/logstash/logstash:${STACK_VERSION} container_name: logstash build: context: ./ELK.Docker/logstash/ args: ELK_VERSION: $ELK_VERSION depends_on: - elasticsearch kibana: image: docker.elastic.co/kibana/kibana:${STACK_VERSION} build: context: ./ELK.Docker/kibana/ args: ELK_VERSION: $ELK_VERSION depends_on: - elasticsearch filebeat: image: docker.elastic.co/filebeat/filebeat:${STACK_VERSION} build: context: ./ELK.Docker/filebeat/ args: ELK_VERSION: $ELK_VERSION depends_on: - logstash networks: opendmp-frontend-network: opendmp-backend-network: opendmp-pdf-network: open-dmp-elk-network: volumes: dmpdata: external: true