Fix dockerfile
This commit is contained in:
@@ -162,9 +162,9 @@ services:
|
||||
|
||||
# Authentication Service
|
||||
auth-service:
|
||||
build:
|
||||
context: ./services/auth
|
||||
dockerfile: Dockerfile
|
||||
build:
|
||||
context: . # Build context is the project root
|
||||
dockerfile: ./services/auth/Dockerfile
|
||||
container_name: bakery-auth-service
|
||||
environment:
|
||||
- DATABASE_URL=postgresql+asyncpg://auth_user:auth_pass123@auth-db:5432/auth_db
|
||||
@@ -188,6 +188,7 @@ services:
|
||||
- bakery-network
|
||||
volumes:
|
||||
- ./services/auth:/app
|
||||
- ./shared:/app/shared # Explicitly mount shared
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
@@ -196,9 +197,9 @@ services:
|
||||
|
||||
# Training Service
|
||||
training-service:
|
||||
build:
|
||||
context: ./services/training
|
||||
dockerfile: Dockerfile
|
||||
build:
|
||||
context: . # Build context is the project root
|
||||
dockerfile: ./services/training/Dockerfile
|
||||
container_name: bakery-training-service
|
||||
environment:
|
||||
- DATABASE_URL=postgresql+asyncpg://training_user:training_pass123@training-db:5432/training_db
|
||||
@@ -223,6 +224,7 @@ services:
|
||||
- bakery-network
|
||||
volumes:
|
||||
- ./services/training:/app
|
||||
- ./shared:/app/shared # Explicitly mount shared
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
@@ -231,9 +233,9 @@ services:
|
||||
|
||||
# Forecasting Service
|
||||
forecasting-service:
|
||||
build:
|
||||
context: ./services/forecasting
|
||||
dockerfile: Dockerfile
|
||||
build:
|
||||
context: . # Build context is the project root
|
||||
dockerfile: ./services/forecasting/Dockerfile
|
||||
container_name: bakery-forecasting-service
|
||||
environment:
|
||||
- DATABASE_URL=postgresql+asyncpg://forecasting_user:forecasting_pass123@forecasting-db:5432/forecasting_db
|
||||
@@ -259,6 +261,7 @@ services:
|
||||
- bakery-network
|
||||
volumes:
|
||||
- ./services/forecasting:/app
|
||||
- ./shared:/app/shared # Explicitly mount shared
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
@@ -267,9 +270,9 @@ services:
|
||||
|
||||
# Data Service
|
||||
data-service:
|
||||
build:
|
||||
context: ./services/data
|
||||
dockerfile: Dockerfile
|
||||
build:
|
||||
context: . # Build context is the project root
|
||||
dockerfile: ./services/data/Dockerfile
|
||||
container_name: bakery-data-service
|
||||
environment:
|
||||
- DATABASE_URL=postgresql+asyncpg://data_user:data_pass123@data-db:5432/data_db
|
||||
@@ -295,6 +298,7 @@ services:
|
||||
- bakery-network
|
||||
volumes:
|
||||
- ./services/data:/app
|
||||
- ./shared:/app/shared # Explicitly mount shared
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
@@ -303,9 +307,9 @@ services:
|
||||
|
||||
# Tenant Service
|
||||
tenant-service:
|
||||
build:
|
||||
context: ./services/tenant
|
||||
dockerfile: Dockerfile
|
||||
build:
|
||||
context: . # Build context is the project root
|
||||
dockerfile: ./services/tenant/Dockerfile
|
||||
container_name: bakery-tenant-service
|
||||
environment:
|
||||
- DATABASE_URL=postgresql+asyncpg://tenant_user:tenant_pass123@tenant-db:5432/tenant_db
|
||||
@@ -329,6 +333,7 @@ services:
|
||||
- bakery-network
|
||||
volumes:
|
||||
- ./services/tenant:/app
|
||||
- ./shared:/app/shared # Explicitly mount shared
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
@@ -337,9 +342,9 @@ services:
|
||||
|
||||
# Notification Service
|
||||
notification-service:
|
||||
build:
|
||||
context: ./services/notification
|
||||
dockerfile: Dockerfile
|
||||
build:
|
||||
context: . # Build context is the project root
|
||||
dockerfile: ./services/notification/Dockerfile
|
||||
container_name: bakery-notification-service
|
||||
environment:
|
||||
- DATABASE_URL=postgresql+asyncpg://notification_user:notification_pass123@notification-db:5432/notification_db
|
||||
@@ -368,6 +373,7 @@ services:
|
||||
- bakery-network
|
||||
volumes:
|
||||
- ./services/notification:/app
|
||||
- ./shared:/app/shared # Explicitly mount shared
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
@@ -376,9 +382,9 @@ services:
|
||||
|
||||
# API Gateway
|
||||
gateway:
|
||||
build:
|
||||
context: ./gateway
|
||||
dockerfile: Dockerfile
|
||||
build:
|
||||
context: . # Build context is the project root
|
||||
dockerfile: ./gateway/Dockerfile
|
||||
container_name: bakery-gateway
|
||||
environment:
|
||||
- REDIS_URL=redis://redis:6379/6
|
||||
@@ -410,6 +416,7 @@ services:
|
||||
- bakery-network
|
||||
volumes:
|
||||
- ./gateway:/app
|
||||
- ./shared:/app/shared # Explicitly mount shared
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
@@ -418,7 +425,7 @@ services:
|
||||
|
||||
# Dashboard Frontend
|
||||
dashboard:
|
||||
build:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile.dev
|
||||
container_name: bakery-dashboard
|
||||
@@ -493,7 +500,7 @@ services:
|
||||
volumes:
|
||||
- ./infrastructure/monitoring/logstash:/usr/share/logstash/pipeline
|
||||
ports:
|
||||
- "5044:5000"
|
||||
- "5044:5000"
|
||||
depends_on:
|
||||
- elasticsearch
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user