Create file backend/.env
or delete .example
in the backend/.env.example
file
Fill in the data in the file .env
SECRET_KEY=KEY
DEBUG='1 - True, 0 - False'
ALLOWED_HOSTS=localhost,127.0.0.1,etc...
docker-compose up
docker-compose.yaml
version: "3"
services:
backend:
build: backend
env_file:
- backend/.env
ports:
- "8000:8000"
frontend:
build: frontend
ports:
- "3001:3000"