63 lines
1.6 KiB
YAML
63 lines
1.6 KiB
YAML
---
|
|
# 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"
|