-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yml
67 lines (62 loc) · 1.54 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
version: '3.8'
services:
lavalink:
image: ghcr.io/lavalink-devs/lavalink:latest-alpine
container_name: lavalink
user: root
restart: unless-stopped
environment:
- SERVER_PORT=2333
- LAVALINK_SERVER_PASSWORD=youshallnotpass
volumes:
- ./docker/application.yml:/opt/Lavalink/application.yml
- ./plugins/:/opt/Lavalink/plugins/
networks:
- lavalink
expose:
- 2333
ports:
- '2333:2333'
mongodb:
container_name: mongodb
ports:
- 27017:27017
image: mongo:latest
user: root
environment:
MONGO_INITDB_ROOT_USERNAME: byteblaze
MONGO_INITDB_ROOT_PASSWORD: cylane
restart: on-failure
networks:
- mongodb-net
volumes:
- ./mongodb_data:/data/db
hostname: mongodb
byteblaze:
build: .
image: byteblaze:latest
container_name: byteblaze
user: root
restart: unless-stopped
networks:
- lavalink
- mongodb-net
depends_on:
- lavalink
- mongodb
environment:
- DOCKER_COMPOSE_DATABASE=true
- DOCKER_COMPOSE_MODE=true
# Database
- MONGO_URI=mongodb://byteblaze:cylane@mongodb:27017/production?directConnection=true&authSource=admin&replicaSet=replicaset&retryWrites=true
# Lavalink
- NODE_HOST=lavalink
- NODE_PORT=2333
- NODE_AUTH=youshallnotpass
networks:
mongodb-net:
lavalink: # create a lavalink network you can add other containers to, to give them access to Lavalink
name: lavalink
volumes:
mongodb_data:
external: true