UrlsController/docker-compose.yml

49 lines
1.1 KiB
YAML

version: '3.3'
services:
urls_controller:
profiles: ["onlyController", "all"]
image: 'pdf_aggregation_service/urls_controller:latest'
ports:
- '1880:1880'
volumes:
- type: bind
source: $HOME/tmp/config
target: /mnt/config
- type: bind
source: $HOME/tmp
target: /tmp
- type: bind
source: $HOME/logs
target: /logs
- type: bind
source: /mnt/bulkImport
target: /mnt/bulkImport
- type: bind
source: $HOME/bulkImportReports
target: /bulkImportReports
build:
dockerfile: ./Dockerfile
context: .
prometheus:
profiles: ["all"]
image: 'prom/prometheus:latest'
ports:
- '9090:9090'
command: '--config.file=/etc/prometheus/config.yml'
volumes:
- './src/main/resources/prometheus.yml:/etc/prometheus/config.yml'
depends_on:
- urls_controller
grafana:
profiles: ["all"]
image: 'grafana/grafana:latest'
ports:
- '3000:3000'
depends_on:
- urls_controller
- prometheus