chore: update backend config files, add mailpit docker service

This commit is contained in:
Lucien Cartier-Tilet 2024-12-05 02:01:19 +01:00
parent 7816f24695
commit d5b5219c04
Signed by: phundrak
GPG Key ID: 347803E8073EACE0
4 changed files with 47 additions and 26 deletions

4
.gitignore vendored
View File

@ -17,4 +17,6 @@ target/
*.pdb
*.sqlite
.direnv/
.direnv/
*.sqlite-shm
*.sqlite-wal

50
Cargo.lock generated
View File

@ -1080,6 +1080,31 @@ dependencies = [
"typenum",
]
[[package]]
name = "daily_aujourdhui"
version = "0.1.0"
dependencies = [
"async-trait",
"axum",
"chrono",
"fluent-templates",
"include_dir",
"insta",
"loco-rs",
"migration",
"rstest",
"sea-orm",
"serde",
"serde_json",
"serial_test",
"tokio",
"tracing",
"tracing-subscriber",
"unic-langid",
"uuid",
"validator",
]
[[package]]
name = "darling"
version = "0.20.10"
@ -2342,31 +2367,6 @@ dependencies = [
"validator",
]
[[package]]
name = "loco_starter_template"
version = "0.1.0"
dependencies = [
"async-trait",
"axum",
"chrono",
"fluent-templates",
"include_dir",
"insta",
"loco-rs",
"migration",
"rstest",
"sea-orm",
"serde",
"serde_json",
"serial_test",
"tokio",
"tracing",
"tracing-subscriber",
"unic-langid",
"uuid",
"validator",
]
[[package]]
name = "log"
version = "0.4.22"

18
docker/compose.dev.yml Normal file
View File

@ -0,0 +1,18 @@
services:
mailpit:
image: axllent/mailpit:latest
restart: unless-stopped
container_name: tal-backend-mailpit
ports:
- 127.0.0.1:8025:8025 # WebUI
- 127.0.0.1:1025:1025 # SMTP
volumes:
- daily_aujourdhui_mailpit:/data
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
volumes:
daily_aujourdhui_mailpit:

View File

@ -60,6 +60,7 @@
rustVersion
sea-orm-cli
vscode-langservers-extracted
yaml-language-server
];
};
});