fix: use relative paths for bind-mount volumes
Absolute paths (/Volumes/ssd01/mikrotik/docker-data/) are machine-specific and won't work on any other system. Use ./docker-data/ so the repo works wherever it's cloned. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -24,7 +24,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- /Volumes/ssd01/mikrotik/docker-data/postgres:/var/lib/postgresql/data
|
- ./docker-data/postgres:/var/lib/postgresql/data
|
||||||
- ./scripts/init-postgres.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
- ./scripts/init-postgres.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U postgres -d mikrotik"]
|
test: ["CMD-SHELL", "pg_isready -U postgres -d mikrotik"]
|
||||||
@@ -45,7 +45,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
volumes:
|
volumes:
|
||||||
- /Volumes/ssd01/mikrotik/docker-data/redis:/data
|
- ./docker-data/redis:/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
test: ["CMD", "redis-cli", "ping"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
@@ -67,7 +67,7 @@ services:
|
|||||||
- "4222:4222"
|
- "4222:4222"
|
||||||
- "8222:8222"
|
- "8222:8222"
|
||||||
volumes:
|
volumes:
|
||||||
- /Volumes/ssd01/mikrotik/docker-data/nats:/data
|
- ./docker-data/nats:/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "wget --spider -q http://localhost:8222/healthz || exit 1"]
|
test: ["CMD-SHELL", "wget --spider -q http://localhost:8222/healthz || exit 1"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
@@ -124,8 +124,8 @@ services:
|
|||||||
- PGID=1000
|
- PGID=1000
|
||||||
- TZ=UTC
|
- TZ=UTC
|
||||||
volumes:
|
volumes:
|
||||||
- /Volumes/ssd01/mikrotik/docker-data/wireguard:/config
|
- ./docker-data/wireguard:/config
|
||||||
- /Volumes/ssd01/mikrotik/docker-data/wireguard/custom-cont-init.d:/custom-cont-init.d
|
- ./docker-data/wireguard/custom-cont-init.d:/custom-cont-init.d
|
||||||
ports:
|
ports:
|
||||||
- "51820:51820/udp"
|
- "51820:51820/udp"
|
||||||
cap_add:
|
cap_add:
|
||||||
|
|||||||
Reference in New Issue
Block a user