fixing root permissions inside container
This commit is contained in:
@@ -25,6 +25,11 @@ services:
|
|||||||
image: ghcr.io/lavalink-devs/lavalink:4
|
image: ghcr.io/lavalink-devs/lavalink:4
|
||||||
container_name: lavalink
|
container_name: lavalink
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
# A mounted volume at /opt/Lavalink/plugins is created root-owned (the image
|
||||||
|
# has no plugins dir for Docker to copy ownership from), but Lavalink runs as
|
||||||
|
# a non-root user and can't write there. Run as root so it can download the
|
||||||
|
# plugin jars into the volume. The container is internal-only.
|
||||||
|
user: "0:0"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user