mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-30 05:29:47 +00:00
88ff542aeb
- Fixed ignore patterns in .dockerignore - Added healthchecks to backend and web containers - Reduced Docker image sizes - Removed RaSCSI references in various areas (e.g. rascsi -> backend) - Added compilation-only step to easyinstall.sh - Moved apt package lists to variables - Revert to triggering GitHub Actions runs on push - Updated web/frontend_checks workflow to run black and flake8 against all Python sources - Capture log files from backend/web containers - Fix None to float conversion bug when user agent is absent or unrecognised
42 lines
919 B
YAML
42 lines
919 B
YAML
services:
|
|
backend:
|
|
image: ${DOCKER_BACKEND_IMAGE}
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/backend/Dockerfile
|
|
init: true
|
|
volumes:
|
|
- ./volumes/images:/home/pi/images:delegated
|
|
healthcheck:
|
|
interval: 5s
|
|
start_period: 5s
|
|
|
|
web:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/web/Dockerfile
|
|
args:
|
|
- OS_VERSION=buster
|
|
volumes:
|
|
- ./volumes/images:/home/pi/images:delegated
|
|
init: true
|
|
command: ["--rascsi-host=backend", "--log-level=debug"]
|
|
healthcheck:
|
|
interval: 5s
|
|
start_period: 5s
|
|
|
|
pytest:
|
|
depends_on:
|
|
web:
|
|
condition: service_healthy
|
|
backend:
|
|
condition: service_healthy
|
|
profiles:
|
|
- webui-tests
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/pytest/Dockerfile
|
|
working_dir: /src
|
|
volumes:
|
|
- ./volumes/pytest:/src/tests/output:delegated
|
|
command: ["-vv"] |