Agregar soporte para múltiples instancias en la configuración del proyecto, actualizando .gitignore, README.md, DOKPLOY.md, DOKPLOY_QUICK.md y docker-compose.dokploy.yml; además, se crea un nuevo archivo .dockerignore.

This commit is contained in:
2025-12-07 12:33:16 -05:00
parent 418348c54c
commit e69d2414b9
6 changed files with 660 additions and 9 deletions

View File

@@ -0,0 +1,62 @@
---
# Docker Compose for Dokploy
# Dokploy automáticamente maneja:
# - Nombres únicos de contenedores por proyecto
# - Redes aisladas
# - Variables de entorno desde la UI
services:
odengin:
build:
context: ./engine
dockerfile: Dockerfile
image: ${REGISTRY:-ghcr.io}/${IMAGE_OWNER:-user}/onedrive-engine:${IMAGE_TAG:-latest}
environment:
- E5_CLIENT_ID=${E5_CLIENT_ID}
- E5_CLIENT_SECRET=${E5_CLIENT_SECRET}
- E5_REFRESH_TOKEN=${E5_REFRESH_TOKEN}
- WEB_APP_PASSWORD=${WEB_APP_PASSWORD}
- E5_WEB_APP_PASSWORD=${E5_WEB_APP_PASSWORD}
ports:
- "${ENGINE_PORT:-8089}:8080"
restart: unless-stopped
networks:
- onedrive-net
healthcheck:
test:
[
"CMD-SHELL",
"wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
labels:
- "com.dokploy.project=onedrive"
- "com.dokploy.service=engine"
odcron:
build:
context: ./cron
dockerfile: Dockerfile
image: ${REGISTRY:-ghcr.io}/${IMAGE_OWNER:-user}/onedrive-cron:${IMAGE_TAG:-latest}
environment:
- IP=odengin:8080
- PASSWORD=${CRON_PASSWORD}
- REFRESH_TOKEN=${CRON_REFRESH_TOKEN}
restart: unless-stopped
networks:
- onedrive-net
depends_on:
odengin:
condition: service_healthy
labels:
- "com.dokploy.project=onedrive"
- "com.dokploy.service=cron"
networks:
onedrive-net:
driver: bridge
labels:
- "com.dokploy.project=onedrive"