services: << service_name >>: image: fireflyiii/core:latest container_name: << service_name >> ports: - "<< port >>:8080" environment: - TZ=<< timezone >> - APP_KEY=<< app_key >> - DB_CONNECTION=pgsql - DB_HOST=<< service_name >>-db - DB_PORT=5432 - DB_DATABASE=firefly - DB_USERNAME=firefly - DB_PASSWORD=<< db_password >> volumes: - << data_dir >>/<< service_name >>/upload:/var/www/html/storage/upload depends_on: - << service_name >>-db restart: unless-stopped << service_name >>-db: image: postgres:16-alpine container_name: << service_name >>-db environment: - POSTGRES_DB=firefly - POSTGRES_USER=firefly - POSTGRES_PASSWORD=<< db_password >> volumes: - << service_name >>_pgdata:/var/lib/postgresql/data restart: unless-stopped volumes: << service_name >>_pgdata: