test: cover calendar subscriptions end to end in Docker

This commit is contained in:
2026-09-10 19:14:21 +04:00
parent 2f7ffea5f2
commit 5373189061
4 changed files with 301 additions and 0 deletions
+26
View File
@@ -1,5 +1,21 @@
services:
app:
build:
context: .
target: runtime
environment:
API_URL: ${API_URL:-https://api.vacationplanner.ru}
UPSTREAM_TIMEOUT_SECONDS: ${UPSTREAM_TIMEOUT_SECONDS:-15}
ports:
- "127.0.0.1:8080:8080"
restart: unless-stopped
read_only: true
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
stop_grace_period: 65s
dev:
profiles: [dev]
image: rust:1.98.1-bookworm
working_dir: /workspace
command: sleep infinity
@@ -11,6 +27,16 @@ services:
ports:
- "127.0.0.1:8080:8080"
test:
profiles: [test]
build:
context: .
target: test
network_mode: none
read_only: true
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
volumes:
cargo-registry:
cargo-target: