docker-compose.yml (1478B)
1 name: lazier 2 3 services: 4 lazier: 5 build: 6 context: .. 7 dockerfile: docker/Dockerfile 8 container_name: lazier-app 9 ports: 10 - "19283:19283" 11 volumes: 12 - lazier-data:/app/data 13 - lazier-cache:/app/cache 14 - lazier-uploads:/app/uploads 15 - ../outputs:/app/outputs 16 env_file: 17 - ../.env 18 environment: 19 - REDIS_HOST=redis 20 - REDIS_PORT=6379 21 - REDIS_DB=0 22 - LAZIER_PORT=19283 23 - LAZIER_HOST=0.0.0.0 24 - LAZIER_MAX_UPLOAD_SIZE=524288000 25 - LAZIER_CACHE_TTL=604800 26 - LAZIER_UPLOAD_DIR=/app/uploads 27 - LAZIER_OUTPUT_DIR=/app/outputs 28 - LAZIER_DATA_DIR=/app/data 29 depends_on: 30 - redis 31 networks: 32 - lazier_net 33 healthcheck: 34 test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:19283/health')"] 35 interval: 30s 36 timeout: 10s 37 retries: 3 38 start_period: 40s 39 restart: unless-stopped 40 41 redis: 42 networks: 43 - lazier_net 44 image: redis:7-alpine 45 container_name: lazier-redis 46 ports: 47 - "52847:6379" 48 volumes: 49 - redis-data:/data 50 command: redis-server --appendonly yes --maxmemory 512mb --maxmemory-policy allkeys-lru 51 healthcheck: 52 test: ["CMD", "redis-cli", "ping"] 53 interval: 10s 54 timeout: 3s 55 retries: 3 56 restart: unless-stopped 57 58 networks: 59 lazier_net: 60 name: lazier_network 61 62 volumes: 63 redis-data: 64 lazier-data: 65 lazier-cache: 66 lazier-uploads: