Skip to content
Snippets Groups Projects
Commit eadcfa2e authored by Jitka Viceníková's avatar Jitka Viceníková
Browse files

Merge branch 'docker-fix' into 'develop'

Docker not using custom network bridge

See merge request !52
parents 73fe8671 7cd8e4f4
No related branches found
No related tags found
2 merge requests!54Merge develop into main,!52Docker not using custom network bridge
Pipeline #
networks:
grafana-prometheus:
driver: bridge
services:
application:
build:
context: .
target: pa165-formula-team-management-application
container_name: application
ports:
- "8081:8081"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- DOCKER=1
......@@ -18,10 +13,9 @@ services:
build:
context: .
target: pa165-formula-team-management-core
container_name: core
ports:
- "8090:8090"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- DOCKER=1
......@@ -29,21 +23,19 @@ services:
build:
context: .
target: pa165-formula-team-management-notification
container_name: notification
ports:
- "8083:8083"
extra_hosts:
- "host.docker.internal:host-gateway"
visualization:
build:
context: .
target: pa165-formula-team-management-visualization
container_name: visualization
volumes:
- ./visualization/output-data:/output-data
ports:
- "8082:8082"
extra_hosts:
- "host.docker.internal:host-gateway"
prometheus:
image: prom/prometheus:v2.43.0
......@@ -51,14 +43,8 @@ services:
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command: --config.file=/etc/prometheus/prometheus.yml
networks:
grafana-prometheus:
aliases:
- prometheus
ports:
- "9090:9090"
extra_hosts:
- "host.docker.internal:host-gateway"
grafana:
image: grafana/grafana:9.1.7
......@@ -66,9 +52,5 @@ services:
volumes:
- ./datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./dashboards:/etc/grafana/provisioning/dashboards
networks:
- grafana-prometheus
ports:
- "3000:3000"
extra_hosts:
- "host.docker.internal:host-gateway"
......@@ -11,7 +11,7 @@ scrape_configs:
metrics_path: /actuator/prometheus
static_configs:
- targets:
- host.docker.internal:8090
- host.docker.internal:8081
- host.docker.internal:8082
- host.docker.internal:8083
\ No newline at end of file
- core:8090
- application:8081
- visualization:8082
- notification:8083
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment