fix: fix env file for docker compose
This commit is contained in:
@@ -83,7 +83,7 @@ jobs:
|
||||
docker rm chat || true
|
||||
|
||||
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
|
||||
|
||||
|
||||
@@ -3,6 +3,9 @@ services:
|
||||
image: gitea.iceberg.black/${REPO_LOWER}:${TAG}
|
||||
container_name: chat
|
||||
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
ports:
|
||||
- "6066:3000"
|
||||
|
||||
|
||||
+4
-2
@@ -5,7 +5,6 @@ use crate::auth::middleware::auth_middleware;
|
||||
|
||||
use axum::extract::Extension;
|
||||
use axum::{Router, middleware, routing::get};
|
||||
use dotenvy::dotenv;
|
||||
use std::net::SocketAddr;
|
||||
|
||||
pub async fn protected_route(Extension(claims): Extension<Claims>) -> String {
|
||||
@@ -33,7 +32,10 @@ pub fn app() -> Router {
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
dotenv().ok();
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
dotenvy::dotenv().ok();
|
||||
}
|
||||
|
||||
// let jwks = keycloak::get_jwks()
|
||||
// .await
|
||||
|
||||
Reference in New Issue
Block a user