rentease/docker-compose.dev.yml
Ruidy 23f3ceec21
Some checks are pending
CI / checks (push) Waiting to run
Feat/stripe integration (#50)
* feat(stripe): add Stripe payment sync and webhook support

Introduce Stripe integration for automatic payment ingestion and refund
tracking. Adds new fields to the payment model for Stripe IDs and
status,
Stripe client driver, sync service, cron job, manual API endpoint, and
public webhook handler for real-time updates. Includes tests and
documentation. Manual cash entry remains supported.

* chore(stripe): upgrade to stripe-go v83

Upgrade Stripe SDK from v79 to v83 across the codebase. Update all
imports to use github.com/stripe/stripe-go/v83 and refactor client usage
to match the new API, including changes to PaymentIntents listing.
Update documentation and plans to reference the new version. Remove
references to the old version from go.mod and go.sum.

* refactor(payment): extract payment logic to new service

Moves all payment-related logic (manual payments, Stripe sync, webhook
handling) from the booking service into a dedicated payment service
(`internal/service/payment`). Updates server, cron, and handler wiring
to
inject and use the new payment service. Adjusts tests, routes, and
documentation to reflect the new separation of concerns.

This improves cohesion, clarifies responsibilities, and prepares for
future payment features. No database schema changes are introduced.

* chore(ci): add Go and templ setup to CI workflow

This update enhances the CI workflow by adding steps to set up Go using
the version specified in go.mod, add the Go bin directory to the PATH,
and install the templ code generation tool. These additions ensure that
Go-based tooling is available for subsequent CI steps.
2025-11-21 15:47:01 +01:00

54 lines
1.3 KiB
YAML

services:
app:
build:
context: .
dockerfile: Dockerfile.dev
command: ["air", "-c", ".air.toml"]
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
environment:
APP_NAME: rentease
APP_DEBUG: "true"
APP_LOG_LEVEL: debug
APP_PORT: 8000
APP_ORIGINS: http://localhost:8000
APP_DATABASE_URL: postgres://rentease:rentease@db:5432/rentease?sslmode=disable
APP_ADMIN: admin@example.com
APP_ADMIN_SECRET: supersecret
APP_API_KEY: dev-api-key
APP_SECRET_KEY: dev-secret-key
APP_SESSION_SECRET: dev-session-secret
APP_STRIPE_SECRET_KEY: ""
APP_STRIPE_WEBHOOK_SECRET: ""
APP_STRIPE_ACCOUNT_ID: ""
APP_SENTRY_DSN: ""
volumes:
- .:/app
- tmp-data:/app/tmp
- go-build-cache:/root/.cache/go-build
- go-mod-cache:/go/pkg/mod
db:
image: postgres:17-alpine
environment:
POSTGRES_DB: rentease
POSTGRES_USER: rentease
POSTGRES_PASSWORD: rentease
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data:
tmp-data:
go-build-cache:
go-mod-cache: