-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
42 lines (41 loc) · 1.81 KB
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
42 lines (41 loc) · 1.81 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
36
37
38
39
40
41
42
services:
lavalink:
# 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
- ./application.yml:/opt/Lavalink/application.yml
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"
lavalink-1:
# 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-1
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
- ./application.yml:/opt/Lavalink/application.yml
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
- "2334:2333"
# if you want to restrict access to localhost only
# - "127.0.0.1:2333:2333"