This file contains hidden or 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
| #!/bin/sh | |
| echo "Running Database Migrations" | |
| python manage.py makemigrations | |
| python manage.py migrate | |
| echo "Running app1 management commands" | |
| python manage.py sample_management_command | |
| exec "$@" |
This file contains hidden or 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
| version: '3' | |
| services: | |
| web_app_db: | |
| restart: always | |
| container_name: web-app-db | |
| image: postgres:11 | |
| environment: | |
| - POSTGRES_USER=${POSTGRES_USER} | |
| - POSTGRES_NAME=${POSTGRES_NAME} |