-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.22 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.22 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
services:
postgres:
image: postgres:15
container_name: video_pg
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: video_system
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:7
container_name: video_redis
restart: always
ports:
- "6379:6379"
api:
build:
context: .
dockerfile: ./api/Dockerfile
container_name: video_api
env_file:
- ./api/.env
depends_on:
- postgres
- redis
ports:
- "5000:5000"
- "5555:5555"
volumes:
- ./api:/usr/src/app
- /usr/src/app/node_modules
- ./api/uploads:/usr/src/app/uploads
- ./api/processed:/usr/src/app/processed
command: ["npm", "start"]
worker:
build:
context: .
dockerfile: ./worker/Dockerfile
container_name: video_worker
depends_on:
- redis
- postgres
volumes:
- ./worker:/usr/src/app
- /usr/src/app/node_modules
- ./api/uploads:/usr/src/app/uploads
- ./api/processed:/usr/src/app/processed
env_file:
- ./worker/.env
command: ["npm", "start"]
volumes:
pgdata: