-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
62 lines (58 loc) · 1.37 KB
/
compose.yml
File metadata and controls
62 lines (58 loc) · 1.37 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
53
54
55
56
57
58
59
60
61
62
services:
selene:
build: .
container_name: selene
restart: unless-stopped
environment:
DATABASE_URL: "postgresql://selene:selene@postgres:5432/selene"
volumes:
- ./config.yaml:/app/config.yaml:ro
depends_on:
lavalink:
condition: service_healthy
postgres:
condition: service_healthy
networks:
- selene
postgres:
image: postgres:17-alpine
container_name: selene-postgres
restart: unless-stopped
environment:
POSTGRES_USER: selene
POSTGRES_PASSWORD: selene
POSTGRES_DB: selene
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: pg_isready -U selene
interval: 5s
timeout: 3s
retries: 5
networks:
- selene
lavalink:
image: ghcr.io/lavalink-devs/lavalink:e141cd9
container_name: lavalink
restart: unless-stopped
environment:
- _JAVA_OPTIONS=-Xmx1G
volumes:
- ./lavalink/application.yml:/opt/Lavalink/application.yml:ro
- ./lavalink/plugins:/opt/Lavalink/plugins
ports:
- "2333:2333"
healthcheck:
test: [ "CMD", "wget", "-qO-", "--header=Authorization: youshallnotpass", "http://localhost:2333/version" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- selene
volumes:
pgdata:
networks:
selene:
name: selene