Files

46 lines
863 B
YAML
Raw Permalink Normal View History

services:
web:
build:
context: .
target: runtime
image: media-ingest:local
init: true
ports:
- "127.0.0.1:8000:8000"
healthcheck:
test:
- CMD
- python
- -c
- >-
import urllib.request;
urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=2)
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
read_only: true
tmpfs:
- /tmp:size=64m,mode=1777
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
restart: unless-stopped
test:
profiles:
- test
build:
context: .
target: test
image: media-ingest-test:local
init: true
read_only: true
tmpfs:
- /tmp:size=64m,mode=1777
security_opt:
- no-new-privileges:true
cap_drop:
- ALL