30 lines
622 B
YAML
30 lines
622 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: sto_k_odnomu
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
backend:
|
|
build: .
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/sto_k_odnomu
|
|
JWT_SECRET: your-secret-key-change-in-production
|
|
PORT: 3000
|
|
depends_on:
|
|
- postgres
|
|
volumes:
|
|
- ./src:/app/src
|
|
command: npm run start:dev
|
|
|
|
volumes:
|
|
postgres_data:
|