Skip to content

HowlerDevs/Social-Backend

Repository files navigation

Run Project by Docker

# just docker file
docker build . -t "webapplication"
docker run --name web_application --env-file .env --network host -d webapplication
# all services in development
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d
# all services in production
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d

Useful commands

See std-out web application

docker logs web_application

Enter to shell WebApplication

docker exec -it web_application bash

Exec migration on docker container

docker exec web_application python manage.py migrate

Add new superuser

docker exec -it web_application python manage.py createsuperuser

Database shell

docker exec -it django-social-db-1 psql -U user -d social

Need postgres command: CREATE EXTENSION pg_trgm;

About

Bekand is a social project built with Django and djangorestframework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages