-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.75 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.75 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
services:
basler-camera-service:
# container / image
container_name: camera-adapter
image: maxscw/basler-camera-adapter:v0.6.2
stop_signal: SIGTERM # optional: ensures a graceful stop
# customization
environment:
- TZ=Europe/Berlin
- LOGGING_LEVEL=DEBUG
# connection for GigE cameras
- IP_ADDRESS="1.1.1.1"
- TRANSMISSION_TYPE=Multicast # must be Multicast when the traffic is routed to the container
- DESTINATION_PORT=46000 # specify a port for the UDP packages and open it
# camera settings
- CONVERT_TO_FORMAT=RGB
- PIXEL_TYPE=Mono8 # most cameras support grayscale inages. Formats depend on camera type
- EXPOSURE_TIME=5000 # default exposure time
# - ACCESS_TOKENS=["a800a67023198c7978ec998c6961797eacd78f1a", "1234"]
# - TEST_IMAGE_PATH=/home/app/test/*.png
# volumes:
# - ./testimages:/home/app/test
# image settings
- IMAGE_FORMAT=jpeg
- IMAGE_QUALITY=100
devices:
- /dev/bus/usb/:/dev/bus/usb/ # required if you use USB cameras
ports:
- 3956:3956 # commands are sent from / to this port. The commands are bind to a MAC address
- 46000:46000/udp # set Streaming Port to fixed value with pylonViewer
- 5005:5050 # external access port | for debugging basler-camera-service:
frontend-service:
# container / image
container_name: frontend
build:
context: ./
dockerfile: Frontend.Dockerfile
image: maxscw/basler-camera-adapter-frontend
# restart policy
restart: unless-stopped
# customization
environment:
- TZ=Europe/Berlin
# customize
- LOGGING_LEVEL=DEBUG
- ADDRESS_BACKEND=http://camera-adapter:5050/basler/take-photo
ports:
- 5006:8501