раскидал структуру для монорепозитория
This commit is contained in:
@@ -20,22 +20,34 @@ services:
|
||||
networks:
|
||||
- app_network
|
||||
|
||||
app:
|
||||
backend:
|
||||
build:
|
||||
context: .
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
container_name: family_budget_app
|
||||
container_name: family_budget_backend
|
||||
environment:
|
||||
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
|
||||
RUST_LOG: ${RUST_LOG:-info}
|
||||
ports:
|
||||
- "${APP_PORT:-8080}:8080"
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- app_network
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
container_name: family_budget_frontend
|
||||
ports:
|
||||
- "5173:5173"
|
||||
depends_on:
|
||||
- backend
|
||||
networks:
|
||||
- app_network
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
driver: local
|
||||
|
||||
Reference in New Issue
Block a user