Skip to content

Commit 3b994eb

Browse files
committed
Switch from directories to volumes to fix permissions issue.
1 parent d7a8374 commit 3b994eb

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.kamal/hooks/docker-setup

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,10 @@ for HOST in "${HOSTS[@]}"; do
2929
3030
chown --recursive app:app /var/media
3131
echo '/var/media ownership changed to app:app'
32+
33+
mkdir --parents /var/prometheus
34+
35+
chown --recursive nobody /var/prometheus
36+
echo '/var/prometheus ownership changed to nobody'
3237
"
3338
done

config/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ accessories:
3030
port: "9090:9090"
3131
files:
3232
- config/prometheus.yml:/etc/prometheus/prometheus.yml
33-
directories:
34-
- prometheus-data:/prometheus
33+
volumes:
34+
- /var/prometheus:/prometheus
3535
roles:
3636
- web
3737

0 commit comments

Comments
 (0)