-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
54 lines (54 loc) · 1.13 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
50
51
52
53
54
services:
db:
container_name: postgres
image: postgres:16.1
ports:
- '5432:5432'
volumes:
- data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=hypertube
- POSTGRES_USER=hypertuber
- POSTGRES_PASSWORD=hypersecret
backend:
build: ./backend
container_name: backend
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./backend:/app/backend
ports:
- "8000:8000"
environment:
- POSTGRES_NAME=hypertube
- POSTGRES_USER=hypertuber
- POSTGRES_PASSWORD=hypersecret
depends_on:
- db
tty: true
frontend:
build: ./frontend
container_name: frontend
command: yarn dev
volumes:
- ./frontend:/app/frontend
- /app/frontend/node_modules
ports:
- "3000:3000"
tty: true
streaming:
build: ./streaming
container_name: streaming_engine
command: yarn start:prod
volumes:
- ./streaming:/app/streaming
ports:
- "8001:8001"
environment:
- PORT=8001
restart: always
api-py:
build: ./api-torrent
ports:
- "8009:8009"
volumes:
data: {}