25 lines
660 B
YAML
25 lines
660 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
pynextcloud:
|
|
build: .
|
|
container_name: pynextcloud-api
|
|
expose:
|
|
- "8000"
|
|
environment:
|
|
# Configuration Nextcloud (à définir dans .env)
|
|
- NEXTCLOUD_URL=${NEXTCLOUD_URL}
|
|
- NEXTCLOUD_USERNAME=${NEXTCLOUD_USERNAME}
|
|
- NEXTCLOUD_PASSWORD=${NEXTCLOUD_PASSWORD}
|
|
# Configuration de l'application
|
|
- APP_HOST=0.0.0.0
|
|
- APP_PORT=8000
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://localhost:8000/health')\""]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|