-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
53 lines (46 loc) · 1.14 KB
/
docker-compose.yaml
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
version: "3.8"
services:
api-server:
build:
context: ./backend/api_server
container_name: api-server
restart: on-failure
ports:
- 8000:8000
volumes:
- ./backend/api_server:/app
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
file-upload-server:
build:
context: ./backend/file_upload_server
container_name: file-upload-server
restart: on-failure
ports:
- 8001:8000
volumes:
- ./backend/file_upload_server:/app
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
upload-event:
build:
context: ./backend/api_server
container_name: upload-event
restart: on-failure
volumes:
- ./backend/api_server:/app
command: python consumer.py upload
compress-event:
build:
context: ./backend/api_server
container_name: compress-event
restart: on-failure
volumes:
- ./backend/api_server:/app
command: python consumer.py compress
frontend:
build:
context: ./frontend
container_name: frontend
ports:
- 3000:80
restart: on-failure
command: ["nginx", "-g", "daemon off;"]