update docker compose to make docker sock read only

This commit is contained in:
Henry Dollman
2024-07-23 15:21:03 -04:00
parent 844b95dfd0
commit e787b6ea1b
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ services:
restart: unless-stopped restart: unless-stopped
network_mode: host network_mode: host
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock:ro
environment: environment:
PORT: 45876 PORT: 45876
KEY: 'ssh-ed25519 YOUR_PUBLIC_KEY' KEY: 'ssh-ed25519 YOUR_PUBLIC_KEY'

View File

@@ -32,7 +32,7 @@ export function AddSystemButton() {
restart: unless-stopped restart: unless-stopped
network_mode: host network_mode: host
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock:ro
environment: environment:
PORT: ${port} PORT: ${port}
KEY: "${publicKey}" KEY: "${publicKey}"