chore(build): add Docker configuration and update dependency versions

- Update Cargo.toml with shortened version specifications for dependencies
- Add .dockerignore file to exclude unnecessary files from Docker builds
- Create .env.example with comprehensive environment variable configurations
- Add docker-compose.yaml with complete multi-service infrastructure setup
- Add Dockerfile with optimized multi-stage build process using cargo-chef
- Add Dockerfile.fast for faster container builds during development
- Configure
This commit is contained in:
zhenyi
2026-06-11 15:32:18 +08:00
parent dbbfb747a4
commit 1ccfd3d626
6 changed files with 537 additions and 21 deletions
+21 -21
View File
@@ -16,20 +16,20 @@ path = "main.rs"
name = "gen_openapi"
path = "gen_openapi.rs"
[dependencies]
sqlx = { version = "0.9.0", features = ["postgres","runtime-tokio","chrono","uuid","json","migrate"] }
tokio = { version = "1.52.3", features = ["full"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = { version = "1.0.150", features = [] }
chrono = { version = "0.4.19", features = ["serde"] }
uuid = { version = "1.23.1", features = ["serde","v4","v7","v5"] }
reqwest = { version = "0.13.4", features = ["json"] }
tracing = { version = "0.1.44", features = [] }
tracing-subscriber = { version = "0.3.23", features = ["fmt"] }
dotenvy = "0.15.7"
sqlx = { version = "0.9", features = ["postgres","runtime-tokio","chrono","uuid","json","migrate"] }
tokio = { version = "1", features = ["full"] }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = [] }
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1", features = ["serde","v4","v7","v5"] }
reqwest = { version = "0.13", features = ["json"] }
tracing = { version = "0.1", features = [] }
tracing-subscriber = { version = "0.3", features = ["fmt"] }
dotenvy = "0.15"
thiserror = "2"
redis = { version = "1.2.1", features = ["cluster","cluster-async","aio","tokio-comp","connection-manager"] }
dashmap = "6.1"
object_store = { version = "0.13.2", features = ["tokio","aws","cloud"] }
redis = { version = "1", features = ["cluster","cluster-async","aio","tokio-comp","connection-manager"] }
dashmap = "6"
object_store = { version = "0.13", features = ["tokio","aws","cloud"] }
argon2 = "0.5"
rsa = "0.9"
chacha20poly1305 = "0.10"
@@ -42,19 +42,19 @@ arc-swap = "1"
base64 = "0.22"
rand = "0.8"
captcha-rs = "0.5"
tonic = { version = "0.14.6", features = ["transport", "channel"] }
prost = "0.14.3"
prost-types = "0.14.3"
tonic-prost = "0.14.6"
tonic = { version = "0.14", features = ["transport", "channel"] }
prost = "0.14"
prost-types = "0.14"
tonic-prost = "0.14"
url = "2.5"
etcd-client = { version = "0.18.0", features = ["tls"] }
etcd-client = { version = "0.18", features = ["tls"] }
tokio-stream = "0.1"
async-nats = "0.49"
futures-util = "0.3"
utoipa = { version = "5.5.0", features = ["uuid","chrono","actix_extras","decimal","macros"]}
utoipa = { version = "5", features = ["uuid","chrono","actix_extras","decimal","macros"]}
actix-web = { version = "4", features = ["secure-cookies"] }
actix-multipart = "0.7"
hex = "0.4.3"
hex = "0.4"
[build-dependencies]
tonic-prost-build = "0.14.6"
tonic-prost-build = "0.14"