48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
---
|
|
# Multi-instance compatible Docker Compose configuration
|
|
# Para ejecutar múltiples instancias: docker-compose -f docker-compose.yml -p instancia1 up -d
|
|
|
|
services:
|
|
odengin:
|
|
build: ./engine
|
|
container_name: ${COMPOSE_PROJECT_NAME:-onedrive}-odengin
|
|
env_file: .env
|
|
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
|
|
hostname: ${COMPOSE_PROJECT_NAME:-onedrive}-odengin
|
|
networks:
|
|
- ${COMPOSE_PROJECT_NAME:-onedrive}-net
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
odcron:
|
|
build: ./cron
|
|
container_name: ${COMPOSE_PROJECT_NAME:-onedrive}-odcron
|
|
env_file: .env
|
|
environment:
|
|
- IP=${CRON_IP:-${COMPOSE_PROJECT_NAME:-onedrive}-odengin:8080}
|
|
- PASSWORD=${CRON_PASSWORD}
|
|
- REFRESH_TOKEN=${CRON_REFRESH_TOKEN}
|
|
restart: unless-stopped
|
|
hostname: ${COMPOSE_PROJECT_NAME:-onedrive}-odcron
|
|
networks:
|
|
- ${COMPOSE_PROJECT_NAME:-onedrive}-net
|
|
depends_on:
|
|
odengin:
|
|
condition: service_healthy
|
|
|
|
networks:
|
|
${COMPOSE_PROJECT_NAME:-onedrive}-net:
|
|
driver: bridge
|