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 - video
volumes: volumes:
- /etc/resolv.conf:/etc/resolv.conf:ro - /etc/resolv.conf:/etc/resolv.conf:ro
- ./data:/var/lib/boinc - ${PWD}/data:/var/lib/boinc
environment: environment:
- BOINC_CMD_LINE_OPTIONS=--allow_remote_gui_rpc - BOINC_CMD_LINE_OPTIONS=--allow_remote_gui_rpc
- BOINC_GUI_RPC_PASSWORD=123 - BOINC_GUI_RPC_PASSWORD=123
- BOINC_REMOTE_HOST=192.168.1.1
- TZ=Europe/Dublin - TZ=Europe/Dublin

View File

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

View File

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

View File

@@ -3,14 +3,14 @@
version: "3" version: "3"
services: services:
syncthing: syncthing:
image: syncthing/syncthing:1.27.2 image: syncthing/syncthing:1.27.3
container_name: syncthing container_name: syncthing
hostname: ${HOSTNAME} hostname: ${HOSTNAME}
environment: environment:
- PUID=1000 - PUID=1000
- PGID=100 - PGID=100
volumes: volumes:
- ./config:/var/syncthing/config - ${PWD}/config:/var/syncthing/config
- ./data:/var/syncthing/data - ${PWD}/data:/var/syncthing/data
network_mode: host network_mode: host
restart: unless-stopped 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. # Gracefully stop containers.
docker stop 'alpine-test' docker stop 'alpine-test'
docker stop 'bdbe3f45' docker stop -t '0' 'bdbe3f45'
# Kill containers. # Kill containers.
docker kill 'alpine-test' docker kill 'alpine-test'