fix: use the PWD environment variable in docker-compose files

This commit is contained in:
Michele Cereda
2024-02-12 00:57:22 +01:00
parent 281217c844
commit e2fb3504d0
5 changed files with 7 additions and 9 deletions

View File

@@ -24,9 +24,8 @@ services:
- video
volumes:
- /etc/resolv.conf:/etc/resolv.conf:ro
- ./data:/var/lib/boinc
- ${PWD}/data:/var/lib/boinc
environment:
- BOINC_CMD_LINE_OPTIONS=--allow_remote_gui_rpc
- BOINC_GUI_RPC_PASSWORD=123
- BOINC_REMOTE_HOST=192.168.1.1
- TZ=Europe/Dublin

View File

@@ -21,7 +21,7 @@ services:
- /dev/dri:/dev/dri
volumes:
- /etc/resolv.conf:/etc/resolv.conf:ro
- ./data:/var/lib/boinc
- ${PWD}/data:/var/lib/boinc
environment:
- BOINC_CMD_LINE_OPTIONS=--allow_remote_gui_rpc
- BOINC_GUI_RPC_PASSWORD=123

View File

@@ -15,9 +15,8 @@ services:
network_mode: host
pid: host
volumes:
- ./data:/var/lib/boinc
- ${PWD}/data:/var/lib/boinc
environment:
- BOINC_CMD_LINE_OPTIONS=--allow_remote_gui_rpc
- BOINC_GUI_RPC_PASSWORD=123
- BOINC_REMOTE_HOST=192.168.1.1
- TZ=Europe/Dublin

View File

@@ -3,14 +3,14 @@
version: "3"
services:
syncthing:
image: syncthing/syncthing:1.27.2
image: syncthing/syncthing:1.27.3
container_name: syncthing
hostname: ${HOSTNAME}
environment:
- PUID=1000
- PGID=100
volumes:
- ./config:/var/syncthing/config
- ./data:/var/syncthing/data
- ${PWD}/config:/var/syncthing/config
- ${PWD}/data:/var/syncthing/data
network_mode: host
restart: unless-stopped

View File

@@ -50,7 +50,7 @@ docker run -d --name 'boinc' --network='host' --pid='host' -v 'boinc:/var/lib/bo
# Gracefully stop containers.
docker stop 'alpine-test'
docker stop 'bdbe3f45'
docker stop -t '0' 'bdbe3f45'
# Kill containers.
docker kill 'alpine-test'