Skip to content

Commit 3bdf14d

Browse files
Added auto-restart to docker-compose.yml
1 parent 7959566 commit 3bdf14d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ services:
7777
volumes:
7878
- ./config/pgwatch-postgres/sources.yml:/etc/pgwatch/sources.yml
7979
- ./config/pgwatch-postgres/metrics.yml:/etc/pgwatch/metrics.yml
80+
restart: unless-stopped
8081

8182
# PGWatch Instance 2 - Monitoring service (Prometheus sink)
8283
pgwatch-prometheus:
@@ -92,6 +93,7 @@ services:
9293
volumes:
9394
- ./config/pgwatch-prometheus/sources.yml:/etc/pgwatch/sources.yml
9495
- ./config/pgwatch-prometheus/metrics.yml:/etc/pgwatch/metrics.yml
96+
restart: unless-stopped
9597

9698
# Grafana with datasources - Visualization layer
9799
grafana:
@@ -111,6 +113,7 @@ services:
111113
depends_on:
112114
- sink-postgres
113115
- sink-prometheus
116+
restart: unless-stopped
114117
flask-backend:
115118
build:
116119
context: ./flask-backend
@@ -123,7 +126,7 @@ services:
123126
- sink-prometheus
124127
ports:
125128
- "55000:5000"
126-
129+
restart: unless-stopped
127130
# PostgreSQL Reports Generator - Runs reports after 1 hour
128131
postgres-reports:
129132
image: python:3.11-slim

0 commit comments

Comments
 (0)