forked from Dumb-Crews/socio-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (39 loc) · 942 Bytes
/
docker-compose.yaml
File metadata and controls
42 lines (39 loc) · 942 Bytes
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
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- '4000:4000'
env_file:
- ./backend/.env
environment:
- FLASK_URL=http://flask:5000
volumes:
- ./backend:/express
- /express/node_modules
- ./media:/media
- ./final:/final
depends_on:
- flask
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:4000/api']
interval: 10s
timeout: 10s
retries: 3
start_period: 10s
flask:
build:
context: ./downloader
dockerfile: Dockerfile
ports:
- '5000:5000'
volumes:
- ./downloader:/flask
- ./media:/media
volumes:
media:
driver: local
final:
driver: local