-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.15 KB
/
docker-compose.yml
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
43
44
version: "3"
networks:
discordx-network:
name: discordx-network
services:
lavalink:
# pin the image version to Lavalink v4
image: ghcr.io/lavalink-devs/lavalink:4
container_name: lavalink
restart: unless-stopped
environment:
# set Java options here
- _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 or use environment variables
- ./application.yml:/opt/Lavalink/application.yml
networks:
- discordx-network
expose:
# lavalink exposes port 2333 to connect to for other containers (this is for documentation purposes only)
- 2333
ports:
# you only need this if you want to make your lavalink accessible from outside of containers
- "2333:2333"
app:
depends_on:
- lavalink
build:
context: .
dockerfile: Dockerfile
environment:
- BOT_TOKEN=${BOT_TOKEN}
- LAVA_HOST=lavalink
- LAVA_PORT=2333
networks:
- discordx-network
command: node build/main.js