-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
66 lines (61 loc) · 1.17 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
version: '3'
services:
frontend:
container_name: 'frontend'
build:
context: ./frontend
dockerfile: Dockerfile
tty: true
ports:
- '5173:5173'
volumes:
- ./frontend:/home/app
depends_on:
- backend
ulimits:
core:
hard: 0
soft: 0
command: sh -c 'npm install && npm run dev'
backend:
build: ./backend
container_name: 'backend'
environment:
- HOST=0.0.0.0
- PORT=8000
ports:
- '8000:8000'
volumes:
- ./backend:/usr/src/app
command: bash -c 'python main.py'
restart: always
api:
container_name: 'api'
build:
context: ./api
dockerfile: Dockerfile
environment:
- HOST=0.0.0.0
- PORT=8001
shm_size: '5gb'
tty: true
ports:
- '8001:8001'
volumes:
- ./api:/usr/src/app
command: bash -c 'python main.py'
api2:
container_name: 'api2'
build:
context: ./api
dockerfile: Dockerfile
environment:
- HOST=0.0.0.0
- PORT=8002
shm_size: '5gb'
tty: true
ports:
- '8002:8002'
volumes:
- ./api:/usr/src/app
command: bash -c 'python main.py'