services: app: image: fireflyiii/core:latest restart: unless-stopped env_file: .env volumes: - firefly_upload:/var/www/html/storage/upload networks: - firefly depends_on: db: condition: service_healthy redis: condition: service_healthy healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 start_period: 60s cron: image: fireflyiii/core:latest restart: unless-stopped env_file: .env command: sh -c "sleep 60 && php /var/www/html/artisan firefly-iii:cron" entrypoint: /bin/sh networks: - firefly depends_on: - app importer: image: fireflyiii/data-importer:latest restart: unless-stopped env_file: .env networks: - firefly depends_on: app: condition: service_healthy healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 start_period: 30s db: image: postgres:16-alpine restart: unless-stopped env_file: .env volumes: - firefly_db:/var/lib/postgresql/data networks: - firefly healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] interval: 10s timeout: 5s retries: 5 redis: image: redis:7-alpine restart: unless-stopped command: redis-server --requirepass ${REDIS_PASSWORD} volumes: - firefly_redis:/data networks: - firefly healthcheck: test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"] interval: 10s timeout: 5s retries: 5 volumes: firefly_upload: firefly_db: firefly_redis: networks: firefly: driver: bridge