-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.08 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
43
44
45
46
47
48
49
50
51
52
version: '3'
services:
# Vibingway
bot:
build: .
restart: unless-stopped
depends_on:
- db
- db-migrate
- lavalink
volumes:
- ./config.py:/app/config.py
# Database
db:
image: postgres:15
restart: unless-stopped
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=vibingway
- POSTGRES_DB=vibingway
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
# Database migrator
db-migrate:
image: postgres:15
depends_on:
db:
condition: service_healthy
environment:
- POSTGRES_CONNECTION_STRING=postgresql://postgres:vibingway@db:5432/vibingway
volumes:
- ./data:/data
- db-data:/migration-data
entrypoint: [ "/data/docker/migrate-db.bash" ]
# Lavalink
lavalink:
image: ghcr.io/lavalink-devs/lavalink:3
restart: unless-stopped
volumes:
- ./data/lavalink/application.yml:/opt/Lavalink/application.yml
volumes:
db-data: