-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
33 lines (32 loc) · 976 Bytes
/
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
services:
lavalink:
container_name: lavalink
image: ghcr.io/lavalink-devs/lavalink
restart: on-failure
hostname: docker.lavalink
volumes:
- ./lavalink/application.yml:/opt/Lavalink/application.yml
- ./lavalink/plugins:/opt/Lavalink/plugins
healthcheck:
test: 'curl -H "Authorization: youshallnotpass" -s http://localhost:2333/version || exit 1'
interval: 10s
timeout: 10s
retries: 5
start_period: 10s # Delay before starting checks
ports:
- "2333:2333" # Expose port for other containers or external access if needed
musicbot:
container_name: musicbot
build:
context: .
target: musicbot
ports:
- "3000:3000" # Not required
volumes:
- ./src:/app/src # Mount code directory
environment:
- NODE_ENV=production # Set your environment variables if needed
restart: unless-stopped
depends_on:
lavalink:
condition: service_healthy