Files
firefly/docker-compose.yml
Jacob Nelson a64aab79b9 Add Firefly III compose stack with k8s migration scaffold
PostgreSQL 16, Redis 7, Firefly III core + data importer, cron container.
Health checks on all services. .env.example documents all variables.
k8s/ directory scaffolded for future migration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-17 20:34:05 -05:00

86 lines
1.8 KiB
YAML

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