-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
71 lines (66 loc) · 1.57 KB
/
docker-compose.dev.yml
File metadata and controls
71 lines (66 loc) · 1.57 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
61
62
63
64
65
66
67
68
69
70
71
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
- NODE_ENV=development
- REACT_APP_DEV=true
network_mode: "host"
command: npm start
backend:
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- ./backend:/app
- ./backend/data:/app/data
- bambucam_logs:/app/logs
- ./backend/data/go2rtc:/app/data/go2rtc:rw
environment:
- FLASK_APP=src/app.py
- FLASK_ENV=development
- PYTHONUNBUFFERED=1
- LOG_LEVEL=DEBUG
command: flask run --host=0.0.0.0 --port=4000
network_mode: "host"
nginx:
image: nginx:alpine
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
network_mode: "host"
restart: unless-stopped
depends_on:
- backend
- frontend
- go2rtc
go2rtc:
image: alexxit/go2rtc
container_name: go2rtc
restart: unless-stopped
network_mode: host
volumes:
- type: bind
source: ./backend/data/go2rtc
target: /config
bind:
create_host_path: true
environment:
- GOLANG_PROTOBUF_REGISTRATION_CONFLICT=warn
- GO2RTC_LOG_LEVEL=trace
- GO2RTC_CONFIG=/config/go2rtc.yaml
- GO2RTC_API=listen=:1984
- GO2RTC_API_BASE=/go2rtc
command: sh -c "
touch /config/go2rtc.yaml &&
chmod 777 /config/go2rtc.yaml &&
go2rtc
"
volumes:
bambucam_logs:
bambucam_data: