# firefly docker compose version: '3.9' services: app: image: fireflyiii/core:latest restart: unless-stopped volumes: - firefly_iii_upload:/var/www/html/storage/upload env_file: "{{ firefly_config_path | expanduser }}/env.firefly.conf" networks: firefly_iii: ipv4_address: 177.0.0.10 ports: - "{{ firefly_http_port_app }}:8080" depends_on: - db db: image: mariadb hostname: fireflyiiidb restart: unless-stopped env_file: "{{ firefly_config_path | expanduser }}/env.db.conf" networks: firefly_iii: # ipv4_address: 177.0.0.4 volumes: - firefly_iii_db:/var/lib/mysql importer: image: "{{ firefly_import_image }}" hostname: importer restart: unless-stopped env_file: - "{{ firefly_config_path | expanduser }}/env.firefly-import.conf" ports: - "{{ firefly_http_port_import }}:8080" networks: firefly_iii: # ipv4_address: 177.0.0.5 depends_on: - app cron: # # To make this work, set STATIC_CRON_TOKEN in your .env file or as an environment variable and replace REPLACEME below # The STATIC_CRON_TOKEN must be *exactly* 32 characters long # image: alpine restart: unless-stopped command: sh -c "echo \"0 3 * * * wget -qO- http://app:8080/api/v1/cron/{{ firefly_static_cron_token }}\" | crontab - && crond -f -L /dev/stdout" networks: firefly_iii: # ipv4_address: 177.0.0.6 volumes: firefly_iii_upload: firefly_iii_db: networks: firefly_iii: ipam: driver: default config: - subnet: "177.0.0.0/24" # gateway: "177.0.0.1"