-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (46 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
47 lines (46 loc) · 1.04 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
version: "3"
volumes:
shareddata: {}
services:
db:
image: postgres
networks:
- webnet
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123456
ports:
- "5432:5432"
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
server:
image: python:3
ports:
- "3000:3000"
networks:
- webnet
volumes:
- ./Application/server:/app/server
- shareddata:/staticdata
command:
sh -c "pip install psycopg2 &&
pip install flask &&
pip install opencv-python &&
cp /app/server/404.html /staticdata/ &&
python /app/server/rtspserver.py"
environment:
DB_HOST: db
expose:
- "3000"
client:
image: node:10.16.3
networks:
- webnet
volumes:
- ./Application/client:/app/client
- shareddata:/staticdata
working_dir: /app/client/
command: sh -c "npm install && npx webpack && cp -a static/. /staticdata/"
networks:
webnet: