-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
141 lines (132 loc) · 3.76 KB
/
docker-compose.dev.yml
File metadata and controls
141 lines (132 loc) · 3.76 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# This is a development Docker Compose file.
# It is intended for development purposes only and should not be used as a production example.
# Misuse in production environments may lead to unexpected behavior or security risks.
networks:
lingarr:
external: true
services:
Lingarr.Server:
extra_hosts: # added for ollama
- "host.docker.internal:host-gateway"
container_name: Lingarr.Server
image: ${DOCKER_REGISTRY-}lingarrserver
build:
context: .
dockerfile: Lingarr.Server/Dockerfile
args:
BUILD_CONFIGURATION: ${BUILD_CONFIGURATION:-Debug}
environment:
- ASPNETCORE_ENVIRONMENT=Development
- DB_CONNECTION=postgresql
- DB_HOST=Lingarr.Postgres
- DB_PORT=5432
- DB_DATABASE=lingarr
- DB_USERNAME=lingarr
- DB_PASSWORD=Secret1234
- SERVICE_TYPE=libretranslate
- LIBRE_TRANSLATE_URL=http://libretranslate:5000
- SOURCE_LANGUAGES=[{"name":"English","code":"en"},{"name":"Dutch","code":"nl"}]
- TARGET_LANGUAGES=[{"name":"Turkish","code":"tr"},{"name":"Dutch","code":"nl"}]
- ASPNETCORE_URLS=http://+:9876
- ASPNETCORE_HTTP_PORTS=9876
volumes:
- ../media/data/movies:/movies
- ../media/data/tv:/tv
- ../media/data/series/anime:/anime
- ../media/data/config:/app/config
ports:
- "9877:9876"
networks:
- lingarr
depends_on:
Lingarr.Postgres:
condition: service_healthy
Lingarr.Client:
image: ${DOCKER_REGISTRY-}lingarrclient
container_name: Lingarr.Client
build:
context: ./Lingarr.Client/
dockerfile: Dockerfile
environment:
- VITE_BASE_SERVER_URL=Lingarr.Server:9876
ports:
- "9876:9876"
volumes:
- ./Lingarr.Client:/app:rw
- ./Lingarr.Client/node_modules:/app/node_modules
tty: true
command: /bin/sh -c "npm install && npm run dev"
networks:
- lingarr
LibreTranslate:
container_name: LibreTranslate
image: libretranslate/libretranslate:latest
restart: unless-stopped
environment:
- LT_LOAD_ONLY=en,tr,nl,pt
- LT_DISABLE_WEB_UI=false # Optional, enable if you would like to make use of the LibreTranslate web interface
ports:
- 5000:5000
volumes:
- ../media/libretranslate:/home/libretranslate/.local/share/argos-translate
networks:
- lingarr
healthcheck:
test: ["CMD-SHELL", "./venv/bin/python scripts/healthcheck.py"]
Lingarr.Postgres:
image: postgres:16-alpine
container_name: Lingarr.Postgres
tty: true
ports:
- "5432:5432"
environment:
POSTGRES_DB: lingarr
POSTGRES_USER: lingarr
POSTGRES_PASSWORD: Secret1234
networks:
- lingarr
volumes:
- lingarr_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U lingarr -d lingarr"]
interval: 10s
timeout: 5s
retries: 5
radarr:
image: ghcr.io/hotio/radarr:nightly
container_name: radarr
environment:
- TZ=Europe/Amsterdam
volumes:
- ../media/data/movies:/movies
restart: unless-stopped
ports:
- 7878:7878
networks:
- lingarr
sonarr:
image: ghcr.io/hotio/sonarr:nightly
container_name: sonarr
environment:
- TZ=Europe/Amsterdam
volumes:
- ../media/data/tv:/tv
- ../media/data/series/anime:/anime
restart: unless-stopped
ports:
- 8989:8989
networks:
- lingarr
volumes:
lingarr_postgres_data:
# localai:
# container_name: localai
# image: localai/localai:latest-aio-cpu
# ports:
# - 8080:8080
# environment:
# - 'PRELOAD_MODELS=[{"url": "github:go-skynet/model-gallery/mistral.yaml", "name": "mistral"}]'
# stdin_open: true
# tty: true
# networks:
# - lingarr