-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (46 loc) · 1.36 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (46 loc) · 1.36 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
services:
camera-feed-lab:
build:
context: .
dockerfile: Dockerfile
network: none
args:
VCS_REF: ${CAMERA_FEED_LAB_VCS_REF:-unknown}
PIP_INDEX_URL: ${CAMERA_FEED_LAB_PIP_INDEX_URL:-}
NPM_CONFIG_REGISTRY: ${CAMERA_FEED_LAB_NPM_CONFIG_REGISTRY:-}
image: ${CAMERA_FEED_LAB_IMAGE:-camera-feed-lab:0.2.0}
container_name: ${CAMERA_FEED_LAB_CONTAINER_NAME:-camera-feed-lab}
labels:
purpose: ${CAMERA_FEED_LAB_PURPOSE:-application}
org.opencontainers.image.test-run: ${CAMERA_FEED_LAB_TEST_RUN_ID:-none}
init: true
restart: ${CAMERA_FEED_LAB_RESTART_POLICY:-unless-stopped}
read_only: true
user: "10001:10001"
tmpfs:
- /tmp:rw,noexec,nosuid,nodev,size=64m,mode=0700,uid=10001,gid=10001
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
pids_limit: 4096
ports:
- "${CAMERA_FEED_LAB_RTSP_PORT_BINDING:-8554:8554}/tcp"
- "${CAMERA_FEED_LAB_HEALTH_PORT_BINDING:-127.0.0.1:8080:8080}/tcp"
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
healthcheck:
test:
- CMD
- /usr/local/bin/camera-feed-lab
- healthcheck
- --url
- http://127.0.0.1:8080/health
interval: 10s
timeout: 3s
start_period: 60s
retries: 6
stop_grace_period: 20s