-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-encode.yml
40 lines (36 loc) · 1.12 KB
/
docker-compose-encode.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
version: "3.8"
name: finalrip
networks:
backend:
driver: bridge
services:
worker-encode:
image: lychee0/finalrip-worker-encode:cuda
restart: always
environment:
# - FINALRIP_REMOTE_CONFIG_HOST=EASYTIER
- FINALRIP_REMOTE_CONFIG_HOST=consul:8500
- FINALRIP_DB_HOST=mongodb
- FINALRIP_REDIS_HOST=redis
deploy:
replicas: 1
resources:
reservations:
devices:
- driver: nvidia
device_ids:
- "0"
capabilities: [gpu]
networks:
- backend
# easytier:
# image: easytier/easytier:latest
# container_name: easytier
# restart: always
# environment:
# - TZ=Asia/Shanghai
# privileged: true
# network_mode: host
# command: -d --network-name finalrip --network-secret finalrip -e tcp://easytier.public.kkrainbow.top:11010
# use script to create network
# export EASYTIER_COMMAND="-d --network-name finalrip --network-secret finalrip -e tcp://easytier.public.kkrainbow.top:11010" && curl -fsSL "https://raw.githubusercontent.com/TensoRaws/FinalRip/main/deploy/easytier/easytier.sh" | bash