Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b1aa7c3f7b | |||
| 300c031aa6 |
@ -27,3 +27,4 @@ docker-compose up -d
|
||||
- [ ] Pormtail config
|
||||
- [ ] TLS config (https)
|
||||
- [ ] SSH logs
|
||||
- [x] HealthCheck ok
|
||||
@ -1,7 +1,7 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# APP EXEMPLE
|
||||
# APP EXEMPLE
|
||||
nginx-app:
|
||||
container_name: nginx-app
|
||||
image: nginx
|
||||
@ -11,6 +11,12 @@ services:
|
||||
logging_jobname: "containerlogs"
|
||||
ports:
|
||||
- 8080:80
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:80"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
@ -20,6 +26,12 @@ services:
|
||||
volumes:
|
||||
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
|
||||
- ./grafana/dashboards:/var/lib/grafana/dashboards
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:3000/api/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
|
||||
loki:
|
||||
image: grafana/loki:latest
|
||||
@ -30,6 +42,12 @@ services:
|
||||
- ./loki/config:/etc/loki
|
||||
- ./loki/certs:/etc/loki/certs
|
||||
command: -config.file=/etc/loki/config.yml
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:3100/ready"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
|
||||
promtail:
|
||||
image: grafana/promtail:latest
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user