fix: fix env file for docker compose
CI / Rust CI (push) Successful in 1m10s
Publish & Deploy / Build and Push to Registry (push) Successful in 16s
Publish & Deploy / Deploy via SSH (push) Successful in 9s

This commit is contained in:
2026-04-09 17:40:44 +02:00
parent e051218a44
commit a9be43988a
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ jobs:
docker rm chat || true docker rm chat || true
cd /home/shared/iceberg/chat/chat-api cd /home/shared/iceberg/chat/chat-api
docker compose up -d REPO_LOWER=$REPO_LOWER TAG=$TAG docker compose up -d
docker image prune -af docker image prune -af
+3
View File
@@ -3,6 +3,9 @@ services:
image: gitea.iceberg.black/${REPO_LOWER}:${TAG} image: gitea.iceberg.black/${REPO_LOWER}:${TAG}
container_name: chat container_name: chat
env_file:
- .env
ports: ports:
- "6066:3000" - "6066:3000"
+4 -2
View File
@@ -5,7 +5,6 @@ use crate::auth::middleware::auth_middleware;
use axum::extract::Extension; use axum::extract::Extension;
use axum::{Router, middleware, routing::get}; use axum::{Router, middleware, routing::get};
use dotenvy::dotenv;
use std::net::SocketAddr; use std::net::SocketAddr;
pub async fn protected_route(Extension(claims): Extension<Claims>) -> String { pub async fn protected_route(Extension(claims): Extension<Claims>) -> String {
@@ -33,7 +32,10 @@ pub fn app() -> Router {
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
dotenv().ok(); #[cfg(debug_assertions)]
{
dotenvy::dotenv().ok();
}
// let jwks = keycloak::get_jwks() // let jwks = keycloak::get_jwks()
// .await // .await