-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
74 lines (66 loc) · 1.74 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3'
services:
app:
build: ./
volumes:
# HOST : CONTAINER
- ".:/app"
- "./src:/app/src"
- "/tmp/.X11-unix:/tmp/.X11-unix"
ports:
# HOST : CONTAINER
- "5000:5000" # X display?
- "8888:8888" # X display?
- "6900:6900" # remote debugging pudb
env_file:
- .env
environment:
DISPLAY: $DISPLAY
STRUCTLOG_PRETTIFY_JSON: 1
STRUCTLOG_PRETTIFY_XML: 1
# CAMERA: opencv / pi / [blank]
# devices:
# - "/dev/video0:/dev/video0"
command:
# - python3 src/streamer.py
- python3 -m src.run
# - /bin/bash
# - python3 -m local.py
#
# - python3 -m dd.shodaniel.crawler
# - python3 -m shodaniel.src.shodaniel
# - python3 stalk_the_net.py --host 186.23.221.62:8080
# command: sh -c "
# if [[ $dc_option == 'shell' ]]; then
# /bin/bash
# else
# python3 web_stream.py
# fi
# "
# cd ./flask-video-streaming
# pip3 freeze
# python3 app.py
## from: https://www.learnopencv.com/install-opencv-docker-image-ubuntu-macos-windows/
## docker run --device=/dev/video0:/dev/video0 -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -p 5000:5000 -p 8888:8888 -it spmallick/opencv-docker:opencv /bin/bash
#version: '2'
#services:
# app:
# build:
# context: .
# dockerfile: Dockerfile
# # args:
# # - pypi_username=${PYPI_USERNAME}
# # - pypi_password=${PYPI_PASSWORD}
# ports: # more info in README.md
# # - '8080:8080'
# - "6900:6900" # remote debugging pudb
# # env_file:
# # - .env
# tty: true
# volumes:
# # HOST : CONTAINER
# - /srv/da/out/:/tmp/frozen
# - .:/app
# # redis:
# # image: "redis:alpine"
# #