-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
127 lines (122 loc) · 2.75 KB
/
Copy pathdocker-compose.yml
File metadata and controls
127 lines (122 loc) · 2.75 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
services:
postgres:
image: postgres:16-alpine
container_name: postgres
restart: unless-stopped
env_file:
- .env
environment:
- TZ=Asia/Seoul
volumes:
- ./data/postgres:/var/lib/postgresql/data
networks:
- nm
ports:
- '5432:5432'
healthcheck:
test:
- CMD-SHELL
- pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
interval: 10s
timeout: 5s
retries: 5
logging:
driver: 'json-file'
options:
max-size: '2m'
max-file: '3'
lavalink:
image: ghcr.io/lavalink-devs/lavalink:latest-alpine
container_name: lavalink
restart: unless-stopped
environment:
- _JAVA_OPTIONS=-Xmx2G
- TZ=Asia/Seoul
volumes:
- ./data/lavalink/application.yml:/opt/Lavalink/application.yml
- ./data/lavalink/plugins/:/opt/Lavalink/plugins/
- /run/udev:/run/udev:ro
networks:
- nm
ports:
- '2333:2333'
healthcheck:
test: nc -z -v localhost 2333
interval: 10s
timeout: 5s
retries: 5
depends_on:
- ejs-api
logging:
driver: 'json-file'
options:
max-size: '2m'
max-file: '3'
ejs-api:
image: ghcr.io/kikkia/yt-cipher:master
container_name: ejs_signature_api
restart: unless-stopped
init: true
stop_grace_period: 2s
environment:
- TZ=Asia/Seoul
networks:
- nm
ports:
- '8001:8001'
logging:
driver: 'json-file'
options:
max-size: '2m'
max-file: '3'
migrate:
build:
context: .
cache_from:
- ghcr.io/ny0510/nm:latest
image: ghcr.io/ny0510/nm:${NM_IMAGE_TAG:-latest}
container_name: nm-migrate
env_file:
- .env
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
- TZ=Asia/Seoul
command: bun run db:migrate:once
networks:
- nm
depends_on:
postgres:
condition: service_healthy
restart: 'no'
nm:
build:
context: .
cache_from:
- ghcr.io/ny0510/nm:latest
image: ghcr.io/ny0510/nm:${NM_IMAGE_TAG:-latest}
container_name: nm
restart: unless-stopped
env_file:
- .env
environment:
- NODE_ENV=production
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
- TZ=Asia/Seoul
networks:
- nm
depends_on:
migrate:
condition: service_completed_successfully
postgres:
condition: service_healthy
lavalink:
condition: service_healthy
volumes:
- ./data/shoukaku:/app/shoukaku
logging:
driver: 'json-file'
options:
max-size: '2m'
max-file: '3'
networks:
nm: