Skip to content

Commit 7c74cc1

Browse files
authored
Update docker-compose.yml
1 parent a619399 commit 7c74cc1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docker-compose.yml

+10
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services: # 이 항목 밑에 실행하려는 컨테이너 들을 정의
1212
command:
1313
- '--config.file=/etc/prometheus/prometheus.yml'
1414
restart: always
15+
network_mode: host
1516
grafana:
1617
image: grafana/grafana:latest
1718
container_name: grafana
@@ -24,3 +25,12 @@ services: # 이 항목 밑에 실행하려는 컨테이너 들을 정의
2425
restart: always
2526
depends_on:
2627
- prometheus
28+
network_mode: host
29+
java:
30+
image: joypark9/o11y-sample-app:latest
31+
container_name: sample-app
32+
user: "root"
33+
ports:
34+
- 8888:8888
35+
restart: always
36+
network_mode: host

0 commit comments

Comments
 (0)