-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 1.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (33 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Lavalink, the audio server the bot uses to play music.
#
# Comes up on any system with Docker — it's the portable alternative to
# `start.bat`, which runs the .jar by hand and only works on Windows.
#
# docker compose up -d starts Lavalink
# docker compose logs -f follows the logs
# docker compose down tears it down
#
# The password comes from `.env` (LAVALINK_SERVER_PASSWORD). The bot reads the
# same one from LAVALINK_PASSWORD: the two have to match.
services:
lavalink:
image: ghcr.io/lavalink-devs/lavalink:4
container_name: nerdbot-lavalink
restart: unless-stopped
environment:
# Lavalink reads application.yml and resolves ${...} from the environment.
LAVALINK_SERVER_PASSWORD: ${LAVALINK_SERVER_PASSWORD:-youshallnotpass}
SERVER_PORT: 2333
volumes:
- ./lavalink/application.yml:/opt/Lavalink/application.yml:ro
- lavalink-plugins:/opt/Lavalink/plugins
ports:
- "127.0.0.1:2333:2333" # local only: Lavalink should never be exposed
healthcheck:
test: ["CMD-SHELL", "nc -z 127.0.0.1 2333 || exit 1"]
interval: 10s
timeout: 5s
retries: 12
start_period: 30s
volumes:
lavalink-plugins: