2022-08-28 13:51:31 +00:00
|
|
|
services:
|
2022-12-04 14:31:57 +00:00
|
|
|
backend:
|
|
|
|
container_name: rascsi_backend
|
|
|
|
image: rascsi-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
|
|
|
|
- ./volumes/config:/home/pi/.config/rascsi:delegated
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:${RASCSI_PORT:-6868}:6868"
|
|
|
|
environment:
|
|
|
|
- RASCSI_PASSWORD=${RASCSI_PASSWORD:-}
|
|
|
|
init: true
|
|
|
|
command: [
|
|
|
|
"-L",
|
|
|
|
"${RASCSI_LOG_LEVEL:-trace}",
|
|
|
|
]
|
|
|
|
|
2022-12-04 14:31:57 +00:00
|
|
|
web:
|
2022-08-28 13:51:31 +00:00
|
|
|
container_name: rascsi_web
|
2022-12-04 14:31:57 +00:00
|
|
|
image: rascsi-web:${OS_VERSION:-buster}
|
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:
|
|
|
|
- OS_VERSION=${OS_VERSION:-buster}
|
|
|
|
volumes:
|
|
|
|
- ./volumes/images:/home/pi/images:delegated
|
|
|
|
- ./volumes/config:/home/pi/.config/rascsi:delegated
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:${WEB_HTTP_PORT:-8080}:80"
|
|
|
|
- "127.0.0.1:${WEB_HTTPS_PORT:-8443}:443"
|
|
|
|
environment:
|
|
|
|
- RASCSI_PASSWORD=${RASCSI_PASSWORD:-}
|
|
|
|
init: true
|
|
|
|
command: [
|
2022-12-04 14:31:57 +00:00
|
|
|
"--rascsi-host=${RASCSI_HOST:-backend}",
|
2022-08-28 13:51:31 +00:00
|
|
|
"--rascsi-port=${RASCSI_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-04 14:31:57 +00:00
|
|
|
container_name: rascsi_pytest
|
|
|
|
image: rascsi-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-04 14:31:57 +00:00
|
|
|
command: ["-vv"]
|