mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2026-03-17 10:30:16 +00:00
✨ api: add dummy webdav server
This commit is contained in:
parent
3a64668d89
commit
febcf63dba
2 changed files with 15 additions and 1 deletions
|
|
@ -1,6 +1,20 @@
|
||||||
name: advent22
|
name: advent22
|
||||||
|
|
||||||
services:
|
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:
|
api:
|
||||||
image: mcr.microsoft.com/devcontainers/python:3-3.14-trixie
|
image: mcr.microsoft.com/devcontainers/python:3-3.14-trixie
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
"dockerComposeFile": "../../.devcontainer/docker_compose.yml",
|
"dockerComposeFile": "../../.devcontainer/docker_compose.yml",
|
||||||
"service": "api",
|
"service": "api",
|
||||||
"workspaceFolder": "/workspaces/advent22/api",
|
"workspaceFolder": "/workspaces/advent22/api",
|
||||||
"runServices": ["api"],
|
"runServices": ["api", "webdav"],
|
||||||
|
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
"features": {
|
"features": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue