build(docker): Fix compose for SELinux cases

This commit is contained in:
Jose Daniel G. Percy 2025-04-20 01:13:33 +08:00
parent 00160897b1
commit d23e1a5d8d

View File

@ -1,7 +1,4 @@
# docker-compose.yml
version: '3.8'
services:
# The Rust Discord Bot Service
app:
@ -26,9 +23,9 @@ services:
working_dir: /opt/lavalink
# Mount the local Lavalink.jar and application.yml into the container
volumes:
- ./Lavalink.jar:/opt/lavalink/Lavalink.jar:ro # Mount Jar read-only
- ./application.yml:/opt/lavalink/application.yml:ro # Mount config read-only
- ./logs:/opt/lavalink/logs # Mount logs directory (optional)
- ./Lavalink.jar:/opt/lavalink/Lavalink.jar:ro,Z # Mount Jar read-only
- ./application.yml:/opt/lavalink/application.yml:ro,Z # Mount config read-only
- ./logs:/opt/lavalink/logs:Z # Mount logs directory (optional)
# Expose the LavaLink port to the host machine (optional, but useful for debugging)
# and makes it reachable by the 'app' service via Docker network.
ports: