build(docker): Fix compose for SELinux cases
This commit is contained in:
parent
00160897b1
commit
d23e1a5d8d
@ -1,7 +1,4 @@
|
|||||||
# docker-compose.yml
|
# docker-compose.yml
|
||||||
|
|
||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# The Rust Discord Bot Service
|
# The Rust Discord Bot Service
|
||||||
app:
|
app:
|
||||||
@ -26,9 +23,9 @@ services:
|
|||||||
working_dir: /opt/lavalink
|
working_dir: /opt/lavalink
|
||||||
# Mount the local Lavalink.jar and application.yml into the container
|
# Mount the local Lavalink.jar and application.yml into the container
|
||||||
volumes:
|
volumes:
|
||||||
- ./Lavalink.jar:/opt/lavalink/Lavalink.jar:ro # Mount Jar read-only
|
- ./Lavalink.jar:/opt/lavalink/Lavalink.jar:ro,Z # Mount Jar read-only
|
||||||
- ./application.yml:/opt/lavalink/application.yml:ro # Mount config read-only
|
- ./application.yml:/opt/lavalink/application.yml:ro,Z # Mount config read-only
|
||||||
- ./logs:/opt/lavalink/logs # Mount logs directory (optional)
|
- ./logs:/opt/lavalink/logs:Z # Mount logs directory (optional)
|
||||||
# Expose the LavaLink port to the host machine (optional, but useful for debugging)
|
# Expose the LavaLink port to the host machine (optional, but useful for debugging)
|
||||||
# and makes it reachable by the 'app' service via Docker network.
|
# and makes it reachable by the 'app' service via Docker network.
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user