-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 892 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (35 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '3.8'
services:
webdav:
build: .
container_name: webdav-server
ports:
- "8080:8080"
volumes:
- webdav_data:/data/webdav
environment:
- WEBDAV_PORT=8080
- WEBDAV_DB=/data/webdav/webdav.db
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
interval: 30s
timeout: 10s
retries: 3
webdav-auth:
build: .
container_name: webdav-server-auth
ports:
- "8081:8080"
volumes:
- webdav_auth_data:/data/webdav
environment:
- WEBDAV_PORT=8080
- WEBDAV_DB=/data/webdav/webdav.db
- WEBDAV_USER=admin
- WEBDAV_PASSWORD=secret
command: ["/usr/local/bin/webdav_server", "-p", "8080", "--db", "/data/webdav/webdav.db", "-u", "admin", "-P", "secret"]
restart: unless-stopped
volumes:
webdav_data:
webdav_auth_data: