-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.05 KB
/
docker-compose.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
41
42
43
44
45
46
47
48
49
version: '3.8'
services:
redis:
image: docker.io/redis:7.0.12-alpine
ports:
- "6379:6379"
api:
build:
context: "."
dockerfile: ./docker/Dockerfile-api
image: rogueai/yt-dlw-api:latest
environment: &env
CELERY_BROKER: "redis://redis:6379/0"
CELERY_BACKEND: "redis://redis:6379/0"
API_URL: "http://api:8000"
# configuration: pydantic-settings
YDL_HOME": "/completed"
volumes:
- "./completed:/completed"
ports:
- "8000:8000"
worker:
image: rogueai/yt-dlw-api:latest
command: >-
celery -A tasks worker
--loglevel=INFO
--concurrency=1
--queues=downloads,info
environment:
<<: *env
depends_on:
- "redis"
- "api"
app:
build:
context: "."
dockerfile: ./docker/Dockerfile-app
image: rogueai/yt-dlw-app:latest
environment:
PORT: 3000
ORIGIN: "http://localhost:3000"
PUBLIC_API_URL: "http://api:8000"
PUBLIC_API_WS: "ws://localhost:8000"
ports:
- "3000:3000"