version: '3.8' services: postgres: image: postgres:16-alpine environment: POSTGRES_DB: paychain POSTGRES_USER: postgres POSTGRES_PASSWORD: password ports: - '5432:5432' volumes: - postgres_data:/var/lib/postgresql/data redis: image: redis:7-alpine ports: - '6379:6379' backend: build: context: . dockerfile: apps/backend/Dockerfile ports: - '4000:4000' environment: DATABASE_URL: postgresql://postgres:password@postgres:5432/paychain REDIS_URL: redis://redis:6379 JWT_SECRET: change-me-in-production STELLAR_NETWORK: testnet depends_on: - postgres - redis volumes: postgres_data: