-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdev.docker-compose.yaml
More file actions
30 lines (30 loc) · 1.28 KB
/
dev.docker-compose.yaml
File metadata and controls
30 lines (30 loc) · 1.28 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
services:
lavalink:
user: "0:0"
# pin the image version to Lavalink v4 and use the alpine variant for a smaller image size
image: ghcr.io/lavalink-devs/lavalink:4-alpine
container_name: lavalink
restart: unless-stopped
environment:
# set Java options here (6GB heap size)
- _JAVA_OPTIONS=-Xmx6G
# set lavalink server port
# - SERVER_PORT=2333
# set password for lavalink
# - LAVALINK_SERVER_PASSWORD=youshallnotpass
volumes:
# mount application.yml from the same directory, if you want to use environment variables remove this line below
- ./lavalink/application.yml:/opt/Lavalink/application.yml:Z
# persist plugins between restarts, make sure to create the folder & set the correct permissions and user/group id mentioned above
- ./lavalink/plugins/:/opt/Lavalink/plugins/:Z
networks:
- lavalink
ports:
# you only need this if you want to make your lavalink accessible from outside of containers, keep in mind this will expose your lavalink to the internet
- "2333:2333"
# if you want to restrict access to localhost only
# - "127.0.0.1:2333:2333"
networks:
# create a lavalink network you can add other containers to, to give them access to Lavalink
lavalink:
name: lavalink