-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-RaBByT.yml
36 lines (35 loc) · 1.06 KB
/
docker-compose-RaBByT.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
version: '3'
services:
Bot:
container_name: CPU_TBM
image: node:lts-alpine
restart: unless-stopped
labels:
traefik.enable: true
traefik.http.routers.cpu.tls: true
traefik.http.routers.cpu.entrypoints: websecure
traefik.http.routers.cpu.rule: Host(`cpu.${PERSONAL_DOMAINE_NAME}`)
traefik.http.services.cpu.loadbalancer.server.port: 80
networks:
- web
volumes:
- data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- stack.env
command:
- sh
- -c
- >
find /data/ -mindepth 1 -delete &&
apk update && apk add ffmpeg git &&
git clone https://github.com/TBMPQF/TBM_CPU_V2.git /data &&
wget https://raw.githubusercontent.com/Nicolas-mahe/Bot-Discord/main/CreateConfig.sh -O /data/CreateConfig.sh &&
cd /data && chmod +x ./CreateConfig.sh && ./CreateConfig.sh && git checkout ${COMMIT_REF} &&
node --trace-deprecation /data/index.js;
networks:
web:
external: true
volumes:
data: {}