argos/docker-compose.yml

123 lines
3.2 KiB
YAML
Raw Permalink Normal View History

2022-09-13 09:35:56 +02:00
version: "3.8"
2018-07-11 15:47:36 +02:00
2020-04-27 15:21:03 +02:00
services:
2020-04-29 13:03:19 +02:00
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
2022-09-13 09:35:56 +02:00
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
2018-06-27 12:29:21 +02:00
dmp-backend:
2020-04-29 13:03:19 +02:00
build:
2020-04-27 15:21:03 +02:00
context: ./dmp-backend
container_name: opendmp-backend
env_file: ./dmp-backend/Docker/dmp-backend.env
restart: unless-stopped
mem_limit: 2048m
ports:
- "8081:8081"
2022-09-13 09:35:56 +02:00
expose:
- "8080"
2020-04-27 15:21:03 +02:00
networks:
- opendmp-backend-network
2022-09-13 09:35:56 +02:00
- opendmp-pdf-network
- open-dmp-elk-network
2020-04-27 15:21:03 +02:00
volumes:
2022-09-13 09:35:56 +02:00
- ./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
2020-04-27 15:21:03 +02:00
- ./openDMP/dmp-backend/opendmp-logs:/app/logs
- ./openDMP/dmp-backend/tmp:/app/tmp
2022-09-13 09:35:56 +02:00
- ./dmp-backend/web/main/resources/logging:/app/logging
- ./dmp-backend/web/main/resources/documents:/app/documents
2018-06-27 12:29:21 +02:00
dmp-frontend:
build:
2020-04-27 15:21:03 +02:00
context: ./dmp-frontend
container_name: opendmp-frontend
mem_limit: 2048m
restart: unless-stopped
ports:
- "8080:4200"
2018-08-27 17:09:33 +02:00
volumes:
2020-04-27 15:21:03 +02:00
- ./openDMP/dmp-frontend/static-files:/usr/share/nginx/static
2022-09-13 09:35:56 +02:00
- ./dmp-frontend/src/assets/config:/usr/share/nginx/html/assets/config
2020-04-27 15:21:03 +02:00
networks:
- opendmp-frontend-network
2022-09-13 09:35:56 +02:00
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
2020-04-27 15:21:03 +02:00
networks:
opendmp-frontend-network:
2020-04-29 13:03:19 +02:00
opendmp-backend-network:
2022-09-13 09:35:56 +02:00
opendmp-pdf-network:
open-dmp-elk-network:
2020-04-29 13:03:19 +02:00
volumes:
dmpdata:
external: true