feat: initialize full-stack architecture with backend routes, database schema, and glassmorphic frontend UI
This commit is contained in:
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
# docker-compose.yml
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: backend/Dockerfile
|
||||
ports:
|
||||
- "5000:5000"
|
||||
environment:
|
||||
# Для Windows/Mac используйте host.docker.internal для доступа к локальной БД
|
||||
- DATABASE_URL=postgresql://user:password@host.docker.internal:5432/automarket
|
||||
- JWT_SECRET=your_super_secret_key
|
||||
volumes:
|
||||
- ./backend/uploads:/app/backend/uploads
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
frontend:
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./frontend:/usr/share/nginx/html
|
||||
depends_on:
|
||||
- backend
|
||||
Reference in New Issue
Block a user