29 lines
767 B
YAML
29 lines
767 B
YAML
# 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://postgres:a13k40yw@10.10.10.167:5432/automarket
|
|
- JWT_SECRET=9xdkVZRNkX2f2c6j8OsIN19M0KxdTeEQkDobfTfJbJr
|
|
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
|
|
- ./frontend/nginx.conf:/etc/nginx/conf.d/default.conf
|
|
depends_on:
|
|
- backend
|