Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 672 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 672 Bytes

SnyPy Docker Setup

Setup Application

  • Create docker-compose.override.yml based on docker-compose.override.example.yml on adapt configuration
  • Start containers: docker-compose up
  • Run migrations: docker-compose run --rm api python manage.py migrate
  • Load data from fixture: docker-compose run --rm api python manage.py loaddata /fixtures/setup.json

Working with fixtures

Fixtures can be used in order to speed up the setup of the application.

Creat a new fixtures

docker-compose run --rm api python manage.py dumpdata --indent 4 --output /fixtures/setup.json --natural-foreign --natural-primary auth users shares snippets teams