Skip to content

Commit 7cdbe95

Browse files
committed
Specifies volume mount types and attributes
Ensures that volume mounts are explicitly defined as 'bind' types with appropriate attributes such as read-only access and indication of whether they are directories. This change enhances the clarity and control over volume configurations, making the deployment more robust and predictable.
1 parent e4fd6f5 commit 7cdbe95

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

docker-compose.coolify.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,18 @@ services:
113113
- sources-generator
114114
- sink-prometheus
115115
volumes:
116-
- ./config/pgwatch-prometheus/sources.yml:/etc/pgwatch/sources.yml
117-
- ./config/pgwatch-prometheus/metrics.yml:/etc/pgwatch/metrics.yml
116+
- type: bind
117+
source: ./config/pgwatch-prometheus/sources.yml
118+
target: /etc/pgwatch/sources.yml
119+
read_only: true
120+
is_directory: false
121+
content: ""
122+
- type: bind
123+
source: ./config/pgwatch-prometheus/metrics.yml
124+
target: /etc/pgwatch/metrics.yml
125+
read_only: true
126+
is_directory: false
127+
content: ""
118128

119129
# Grafana with datasources - Visualization layer
120130
grafana:

0 commit comments

Comments
 (0)