2022-12-04 14:31:57 +00:00
|
|
|
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:
|
2023-05-16 19:19:40 +00:00
|
|
|
- OS_VERSION=bullseye
|
2022-12-04 14:31:57 +00:00
|
|
|
volumes:
|
|
|
|
- ./volumes/images:/home/pi/images:delegated
|
|
|
|
init: true
|
2022-12-05 17:58:23 +00:00
|
|
|
command: ["--backend-host=backend", "--log-level=debug"]
|
2022-12-04 14:31:57 +00:00
|
|
|
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
|
2022-12-05 17:58:23 +00:00
|
|
|
command: ["-vv"]
|