2025-07-27 14:26:30 +00:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
|
|
services:
|
2025-07-27 15:07:57 +00:00
|
|
|
shelfy:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
2025-07-27 14:26:30 +00:00
|
|
|
container_name: shelfy-go
|
|
|
|
|
working_dir: /app
|
|
|
|
|
ports:
|
2025-07-27 16:09:37 +00:00
|
|
|
- "8090:8080" # Port HTTP exposé sur 8090
|
|
|
|
|
- "2121:2121" # FTP
|
|
|
|
|
- "30000-30100:30000-30100"
|
|
|
|
|
|
2025-07-27 15:07:57 +00:00
|
|
|
extra_hosts:
|
2025-07-27 16:09:37 +00:00
|
|
|
- "dockerhost:host-gateway" # accès à l'hôte depuis le conteneur
|
2025-07-27 15:07:57 +00:00
|
|
|
volumes:
|
2025-07-27 16:09:37 +00:00
|
|
|
- shelfy_upload:/app/upload
|
2025-07-27 14:26:30 +00:00
|
|
|
labels:
|
|
|
|
|
- traefik.http.routers.shelfy.middlewares=webdav-allow-methods@docker
|
|
|
|
|
- traefik.http.middlewares.webdav-allow-methods.headers.accesscontrolallowmethods=GET,PUT,POST,DELETE,PROPFIND,OPTIONS,LOCK,UNLOCK,HEAD
|
|
|
|
|
- traefik.http.middlewares.webdav-allow-methods.headers.accesscontrolallowheaders=Authorization,Depth,Content-Type,If-Modified-Since,User-Agent,Destination,Overwrite
|
2025-07-27 15:07:57 +00:00
|
|
|
dns:
|
|
|
|
|
- 8.8.8.8
|
|
|
|
|
- 1.1.1.1
|
2025-07-27 16:09:37 +00:00
|
|
|
restart: unless-stopped
|
2025-07-27 14:26:30 +00:00
|
|
|
|
|
|
|
|
volumes:
|
2025-07-27 15:07:57 +00:00
|
|
|
shelfy_upload:
|