Skip to content

Commit 24b72dd

Browse files
authored
Refactor Docker Compose configurations to use relative paths for volumes (#157)
1 parent 21b3de0 commit 24b72dd

File tree

77 files changed

+270
-270
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+270
-270
lines changed

services/adguardhome-sync/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ services:
1515
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
1616
#- TS_ACCEPT_DNS=true # Uncomment when using MagicDNS
1717
volumes:
18-
- ${PWD}/config:/config # Config folder used to store Tailscale files - you may need to change the path
19-
- ${PWD}/ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
18+
- ./config:/config # Config folder used to store Tailscale files - you may need to change the path
19+
- ./ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
2020
devices:
2121
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
2222
cap_add:

services/adguardhome/docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ services:
1515
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
1616
#- TS_ACCEPT_DNS=true # Uncomment when using MagicDNS
1717
volumes:
18-
- ${PWD}/config:/config # Config folder used to store Tailscale files - you may need to change the path
19-
- ${PWD}/ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
18+
- ./config:/config # Config folder used to store Tailscale files - you may need to change the path
19+
- ./ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
2020
devices:
2121
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
2222
cap_add:
@@ -43,8 +43,8 @@ services:
4343
environment:
4444
- TZ=Europe/Amsterdam
4545
volumes:
46-
- ${PWD}/${SERVICE}-data/workdir:/opt/adguardhome/work # Work directory for Adguard Home - you may need to change the path
47-
- ${PWD}/${SERVICE}-data/configdir:/opt/adguardhome/conf # Config directory for Adguard Home - you may need to change the path
46+
- ./${SERVICE}-data/workdir:/opt/adguardhome/work # Work directory for Adguard Home - you may need to change the path
47+
- ./${SERVICE}-data/configdir:/opt/adguardhome/conf # Config directory for Adguard Home - you may need to change the path
4848
depends_on:
4949
tailscale:
5050
condition: service_healthy

services/audiobookshelf/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ services:
1515
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
1616
#- TS_ACCEPT_DNS=true # Uncomment when using MagicDNS
1717
volumes:
18-
- ${PWD}/config:/config # Config folder used to store Tailscale files - you may need to change the path
19-
- ${PWD}/ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
18+
- ./config:/config # Config folder used to store Tailscale files - you may need to change the path
19+
- ./ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
2020
devices:
2121
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
2222
cap_add:
@@ -44,7 +44,7 @@ services:
4444
- PGID=1000
4545
- TZ=Europe/Amsterdam
4646
volumes:
47-
- ${PWD}/${SERVICE}-data/app/config:/config
47+
- ./${SERVICE}-data/app/config:/config
4848
depends_on:
4949
tailscale:
5050
condition: service_healthy

services/bazarr/docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ services:
1515
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
1616
#- TS_ACCEPT_DNS=true # Uncomment when using MagicDNS
1717
volumes:
18-
- ${PWD}/config:/config # Config folder used to store Tailscale files - you may need to change the path
19-
- ${PWD}/ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
18+
- ./config:/config # Config folder used to store Tailscale files - you may need to change the path
19+
- ./ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
2020
devices:
2121
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
2222
cap_add:
@@ -44,9 +44,9 @@ services:
4444
- PGID=1000
4545
- TZ=Europe/Amsterdam
4646
volumes:
47-
- ${PWD}/${SERVICE}-data/config:/config
48-
- ${PWD}/${SERVICE}-data/media/movies:/movies
49-
- ${PWD}/${SERVICE}-data/media/tvseries:/tv
47+
- ./${SERVICE}-data/config:/config
48+
- ./${SERVICE}-data/media/movies:/movies
49+
- ./${SERVICE}-data/media/tvseries:/tv
5050
depends_on:
5151
tailscale:
5252
condition: service_healthy

services/beszel/agent/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ services:
1515
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
1616
#- TS_ACCEPT_DNS=true # Uncomment when using MagicDNS
1717
volumes:
18-
- ${PWD}/config:/config # Config folder used to store Tailscale files - you may need to change the path
19-
- ${PWD}/ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
18+
- ./config:/config # Config folder used to store Tailscale files - you may need to change the path
19+
- ./ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
2020
devices:
2121
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
2222
cap_add:

services/beszel/hub/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ services:
1515
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
1616
#- TS_ACCEPT_DNS=true # Uncomment when using MagicDNS
1717
volumes:
18-
- ${PWD}/config:/config # Config folder used to store Tailscale files - you may need to change the path
19-
- ${PWD}/ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
18+
- ./config:/config # Config folder used to store Tailscale files - you may need to change the path
19+
- ./ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
2020
devices:
2121
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
2222
cap_add:
@@ -44,7 +44,7 @@ services:
4444
- PGID=1000
4545
- TZ=Europe/Amsterdam
4646
volumes:
47-
- ${PWD}/${SERVICE}-data/beszel_data:/beszel_data # Work directory for Beszel Hub - you may need to change the path
47+
- ./${SERVICE}-data/beszel_data:/beszel_data # Work directory for Beszel Hub - you may need to change the path
4848
depends_on:
4949
tailscale:
5050
condition: service_healthy

services/caddy/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ services:
1515
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
1616
#- TS_ACCEPT_DNS=true # Uncomment when using MagicDNS
1717
volumes:
18-
- ${PWD}/config:/config # Config folder used to store Tailscale files - you may need to change the path
19-
- ${PWD}/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
20-
- ${PWD}/tailscale/tmp:/tmp # Share the tmp folder with the tailscale socket for TLS. Comment out if not required.
18+
- ./config:/config # Config folder used to store Tailscale files - you may need to change the path
19+
- ./state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
20+
#- ./tailscale/tmp:/tmp # Share the tmp folder with the tailscale socket for TLS. Remove # if required.
2121
devices:
2222
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
2323
cap_add:

services/changedetection/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ services:
1515
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
1616
#- TS_ACCEPT_DNS=true # Uncomment when using MagicDNS
1717
volumes:
18-
- ${PWD}/config:/config # Config folder used to store Tailscale files - you may need to change the path
19-
- ${PWD}/ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
18+
- ./config:/config # Config folder used to store Tailscale files - you may need to change the path
19+
- ./ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
2020
devices:
2121
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
2222
cap_add:
@@ -44,7 +44,7 @@ services:
4444
- PGID=1000
4545
- TZ=Europe/Amsterdam
4646
volumes:
47-
- ${PWD}/${SERVICE}-data/datastore:/datastore
47+
- ./${SERVICE}-data/datastore:/datastore
4848
depends_on:
4949
tailscale:
5050
condition: service_healthy

services/clipcascade/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ services:
1515
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
1616
#- TS_ACCEPT_DNS=true # Uncomment when using MagicDNS
1717
volumes:
18-
- ${PWD}/config:/config # Config folder used to store Tailscale files - you may need to change the path
19-
- ${PWD}/ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
18+
- ./config:/config # Config folder used to store Tailscale files - you may need to change the path
19+
- ./ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
2020
devices:
2121
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
2222
cap_add:
@@ -47,7 +47,7 @@ services:
4747
# - CC_SERVER_LOGGING_LEVEL=DEBUG
4848
- TZ=Europe/Amsterdam
4949
volumes:
50-
- ${PWD}/${SERVICE}-data/cc_users:/database
50+
- ./${SERVICE}-data/cc_users:/database
5151
depends_on:
5252
tailscale:
5353
condition: service_healthy

services/coder/docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ services:
1515
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
1616
#- TS_ACCEPT_DNS=true # Uncomment when using MagicDNS
1717
volumes:
18-
- ${PWD}/config:/config # Config folder used to store Tailscale files - you may need to change the path
19-
- ${PWD}/ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
18+
- ./config:/config # Config folder used to store Tailscale files - you may need to change the path
19+
- ./ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
2020
devices:
2121
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
2222
cap_add:
@@ -45,7 +45,7 @@ services:
4545
CODER_ACCESS_URL: "${CODER_ACCESS_URL}"
4646
volumes:
4747
- /var/run/docker.sock:/var/run/docker.sock:ro
48-
- ${PWD}/${SERVICE}-data/coder-home:/home/coder
48+
- ./${SERVICE}-data/coder-home:/home/coder
4949
depends_on:
5050
database:
5151
condition: service_healthy
@@ -70,7 +70,7 @@ services:
7070
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password} # The PostgreSQL password (useful to connect to the database)
7171
POSTGRES_DB: ${POSTGRES_DB:-coder} # The PostgreSQL default database (automatically created at first launch)
7272
volumes:
73-
- ${PWD}/${SERVICE}-data/coder-data:/var/lib/postgresql/data # Use "docker volume rm coder_coder_data" to reset Coder
73+
- ./${SERVICE}-data/coder-data:/var/lib/postgresql/data # Use "docker volume rm coder_coder_data" to reset Coder
7474
healthcheck:
7575
test:
7676
[

0 commit comments

Comments
 (0)