- Added Default trait to UsersDetailItemDto for easier instantiation. - Refactored UsersServiceTrait to use Pin<Box<dyn Future<...>> for async functions, improving compatibility with async/await. - Updated all service methods to return futures instead of using async_trait. - Improved error handling and logging in upload_file method, ensuring proper handling of multipart data. - Masked sensitive information in Env struct's Debug implementation for better security in logs. - Cleaned up Cargo.toml by removing unnecessary async-trait workspace dependency.
33 lines
624 B
YAML
33 lines
624 B
YAML
services:
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "${PORT}:${PORT}"
|
|
env_file: ".env"
|
|
depends_on:
|
|
- surrealdb
|
|
|
|
surrealdb:
|
|
image: surrealdb/surrealdb:latest
|
|
command: start --log trace --user root --pass root
|
|
ports:
|
|
- "8000:8000"
|
|
|
|
minio:
|
|
image: minio/minio:latest
|
|
container_name: minio
|
|
ports:
|
|
- "9000:9000"
|
|
- "9001:9001"
|
|
environment:
|
|
MINIO_ROOT_USER: minioadmin
|
|
MINIO_ROOT_PASSWORD: minioadmin
|
|
command: server /data --console-address ":9001"
|
|
volumes:
|
|
- minio_data:/data
|
|
|
|
volumes:
|
|
minio_data:
|