api: add dummy webdav server

This commit is contained in:
Jörn-Michael Miehe 2026-02-27 02:45:29 +01:00
parent 3a64668d89
commit febcf63dba
2 changed files with 15 additions and 1 deletions

View file

@ -1,6 +1,20 @@
name: advent22
services:
webdav:
image: sfuhrm/docker-nginx-webdav
environment:
USERNAME: wduser
PASSWORD: 53cr3t!
volumes:
- ../api/.devcontainer/webdav:/media/data
healthcheck:
test: ["CMD", "sh", "-c", "wget --spider -S -U 'HEALTHCHECK' 'http://127.0.0.1' 2>&1 | grep -E 'HTTP/1\\.[01] (200|401)'"]
interval: 30s
timeout: 10s
start_period: 5s
retries: 3
api:
image: mcr.microsoft.com/devcontainers/python:3-3.14-trixie
volumes:

View file

@ -7,7 +7,7 @@
"dockerComposeFile": "../../.devcontainer/docker_compose.yml",
"service": "api",
"workspaceFolder": "/workspaces/advent22/api",
"runServices": ["api"],
"runServices": ["api", "webdav"],
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {