forked from appujet/lavamusic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (80 loc) · 3.1 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
services:
## services for lavalink
lavalink:
container_name: lavamusic-lavalink
image: ghcr.io/lavalink-devs/lavalink
restart: on-failure
environment:
SERVER_PORT: 2333
SERVER_ADDRESS: 0.0.0.0
volumes:
# mount application.yml from the same directory or use environment variables
- ./Lavalink/application.yml:/opt/Lavalink/application.yml
# persist plugins between restarts, make sure to set the correct permissions (user: 322, group: 322)
- ./Lavalink/plugins/:/opt/Lavalink/plugins/
#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"
healthcheck:
test: 'curl -H "Authorization: youshallnotpass" -s http://localhost:2333/version'
interval: 10s
timeout: 10s
retries: 5
start_period: 10s
# services for postgresql database
# postgres:
# container_name: lavamusic-postgres
# image: postgres:16
# restart: on-failure
# environment:
# POSTGRES_USER: lavamusic
# POSTGRES_PASSWORD: lavamusic
# POSTGRES_DB: lavamusic
#
# volumes:
# - ./Postgres/data:/var/lib/postgresql/data
# healthcheck:
# test: 'pg_isready -U lavamusic'
# interval: 10s
# timeout: 10s
# retries: 5
# start_period: 10s
# services for mongodb database
#mongodb:
#container_name: lavamusic-mongodb
#image: 'bitnami/mongodb:4.4'
#restart: on-failure
#environment:
#MONGODB_ADVERTISED_HOSTNAME: 127.0.0.1
#MONGODB_REPLICA_SET_MODE: primary
#MONGODB_ROOT_USER: mongoadmin
#MONGODB_ROOT_PASSWORD: mongopassword
#MONGODB_REPLICA_SET_KEY: replicasetkey123
#volumes: - ./MongoDB/data:/data/db
# services for lavamusic
lavamusic:
container_name: lavamusic
image: ghcr.io/appujet/lavamusic:main
environment:
# Your lavalink url
- LAVALINK_URL=lavalink:2333
# Your lavalink password
- LAVALINK_AUTH=youshallnotpass
# Your lavalink name
- LAVALINK_NAME=Blacky'
# Your lavalink secure (true or false)
- LAVALINK_SECURE=false
# database url
# - DATABASE_URL= put your database url here (mongodb or postgres)
# - DATABASE_URL=postgresql://lavamusic:lavamusic@postgres:5432/lavamusic (for postgres)
# - DATABASE_URL=mongodb://mongoadmin:mongopassword@mongodb:27017/lavamusic?authSource=admin (for mongodb)
volumes:
# mount .env from the same directory or use environment variables
- .env:/opt/lavamusic/.env
restart: on-failure
depends_on:
lavalink:
condition: service_healthy