added dockerfile, requirements.txt, docker-compose.yml

This commit is contained in:
afanasyev.aa 2025-04-04 18:46:13 +09:00
parent 7f28fe580d
commit 456551cd4e
24 changed files with 58 additions and 7 deletions

21
docker-compose.yml Normal file
View file

@ -0,0 +1,21 @@
version: '3.9'
services:
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
ports:
- "8000:8000"
volumes:
- .:/app
depends_on:
- db
db:
image: postgres:14
environment:
POSTGRES_DB: testapi
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"