-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
1,607 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 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 app python manage.py migrate` | ||
* Load data from fixture: `docker-compose run --rm app 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 | ||
|
||
```bash | ||
docker-compose run --rm app python manage.py dumpdata --indent 4 --output /fixtures/setup.json --natural-foreign --natural-primary auth users shares snippets teams | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.