Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚡ set restart options on containers #146

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion backend/src/main/resources/docker-compose-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
volumes:
db:
grafana:
prometheus:

services:
Expand Down Expand Up @@ -29,10 +30,12 @@ services:

loki:
image: grafana/loki
restart: unless-stopped
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

command: -config.file=/etc/loki/local-config.yaml

prometheus:
image: prom/prometheus
restart: unless-stopped
volumes:
- prometheus:/prometheus
entrypoint:
Expand All @@ -52,6 +55,10 @@ services:
- app

grafana:
image: grafana/grafana
restart: unless-stopped
volumes:
- grafana:/var/lib/grafana
environment:
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
- GF_AUTH_ANONYMOUS_ENABLED=true
Expand Down Expand Up @@ -84,7 +91,6 @@ services:
editable: false
EOF
/run.sh
image: grafana/grafana
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image 기재하는 위치를 통일한 점이 좋네요.

ports:
- 3000:3000
links:
Expand Down
8 changes: 7 additions & 1 deletion backend/src/main/resources/docker-compose-local.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
volumes:
db:
grafana:
prometheus:

services:
Expand All @@ -20,12 +21,14 @@ services:

loki:
image: grafana/loki
restart: unless-stopped
ports:
- 3100:3100
command: -config.file=/etc/loki/local-config.yaml

prometheus:
image: prom/prometheus
restart: unless-stopped
volumes:
- prometheus:/prometheus
ports:
Expand All @@ -45,6 +48,10 @@ services:
/bin/prometheus

grafana:
image: grafana/grafana
restart: unless-stopped
volumes:
- grafana:/var/lib/grafana
environment:
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
- GF_AUTH_ANONYMOUS_ENABLED=true
Expand Down Expand Up @@ -77,7 +84,6 @@ services:
editable: false
EOF
/run.sh
image: grafana/grafana
ports:
- 3000:3000
links:
Expand Down
Loading