2022-08-28 13:51:31 +00:00
|
|
|
services:
|
2022-12-04 14:31:57 +00:00
|
|
|
backend:
|
2022-12-05 17:58:23 +00:00
|
|
|
container_name: piscsi_backend
|
|
|
|
image: piscsi-backend
|
2022-08-28 13:51:31 +00:00
|
|
|
pull_policy: never
|
|
|
|
build:
|
|
|
|
context: ..
|
2022-12-04 14:31:57 +00:00
|
|
|
dockerfile: docker/backend/Dockerfile
|
2022-08-28 13:51:31 +00:00
|
|
|
volumes:
|
|
|
|
- ./volumes/images:/home/pi/images:delegated
|
2022-12-05 17:58:23 +00:00
|
|
|
- ./volumes/config:/home/pi/.config/piscsi:delegated
|
2022-08-28 13:51:31 +00:00
|
|
|
ports:
|
2022-12-05 17:58:23 +00:00
|
|
|
- "127.0.0.1:${BACKEND_PORT:-6868}:6868"
|
2022-08-28 13:51:31 +00:00
|
|
|
environment:
|
2022-12-05 17:58:23 +00:00
|
|
|
- BACKEND_PASSWORD=${BACKEND_PASSWORD:-}
|
2022-08-28 13:51:31 +00:00
|
|
|
init: true
|
|
|
|
command: [
|
|
|
|
"-L",
|
2022-12-05 17:58:23 +00:00
|
|
|
"${BACKEND_LOG_LEVEL:-trace}",
|
2022-08-28 13:51:31 +00:00
|
|
|
]
|
|
|
|
|
2022-12-04 14:31:57 +00:00
|
|
|
web:
|
2022-12-05 17:58:23 +00:00
|
|
|
container_name: piscsi_web
|
2023-10-15 06:38:15 +00:00
|
|
|
image: piscsi-web:${OS_VERSION:-bullseye}
|
2022-08-28 13:51:31 +00:00
|
|
|
pull_policy: never
|
|
|
|
build:
|
|
|
|
context: ..
|
2022-12-04 14:31:57 +00:00
|
|
|
dockerfile: docker/web/Dockerfile
|
2022-08-28 13:51:31 +00:00
|
|
|
args:
|
2023-10-15 06:38:15 +00:00
|
|
|
- OS_VERSION=${OS_VERSION:-bullseye}
|
2022-08-28 13:51:31 +00:00
|
|
|
volumes:
|
|
|
|
- ./volumes/images:/home/pi/images:delegated
|
2022-12-05 17:58:23 +00:00
|
|
|
- ./volumes/config:/home/pi/.config/piscsi:delegated
|
2022-08-28 13:51:31 +00:00
|
|
|
ports:
|
|
|
|
- "127.0.0.1:${WEB_HTTP_PORT:-8080}:80"
|
|
|
|
- "127.0.0.1:${WEB_HTTPS_PORT:-8443}:443"
|
|
|
|
environment:
|
2022-12-05 17:58:23 +00:00
|
|
|
- BACKEND_PASSWORD=${BACKEND_PASSWORD:-}
|
2023-11-13 22:52:05 +00:00
|
|
|
- RESET_VENV=${RESET_VENV:-}
|
2022-08-28 13:51:31 +00:00
|
|
|
init: true
|
|
|
|
command: [
|
2022-12-05 17:58:23 +00:00
|
|
|
"--backend-host=${BACKEND_HOST:-backend}",
|
|
|
|
"--backend-port=${BACKEND_PORT:-6868}",
|
2022-12-04 14:31:57 +00:00
|
|
|
"--log-level=${WEB_LOG_LEVEL:-debug}",
|
2022-08-28 13:51:31 +00:00
|
|
|
"--dev-mode"
|
|
|
|
]
|
2022-10-15 02:30:08 +00:00
|
|
|
|
|
|
|
pytest:
|
2022-12-05 17:58:23 +00:00
|
|
|
container_name: piscsi_pytest
|
|
|
|
image: piscsi-pytest
|
2022-10-15 02:30:08 +00:00
|
|
|
pull_policy: never
|
|
|
|
profiles:
|
|
|
|
- webui-tests
|
|
|
|
build:
|
|
|
|
context: ..
|
|
|
|
dockerfile: docker/pytest/Dockerfile
|
|
|
|
working_dir: /src
|
2022-12-05 17:58:23 +00:00
|
|
|
command: ["-vv"]
|