-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(makefile): refactor docker and compose file and docs
- Loading branch information
1 parent
7d7c606
commit 9f4e7fb
Showing
6 changed files
with
42 additions
and
93 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
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,7 @@ | ||
.PHONY: init | ||
|
||
init: | ||
. ${NVM_DIR}/nvm.sh && nvm use | ||
yarn install --dev | ||
poetry env use 3.10 | ||
poetry install |
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 |
---|---|---|
|
@@ -20,12 +20,18 @@ services: | |
- ./src:/usr/local/app/src | ||
- ./logs:/usr/local/app/logs | ||
ports: | ||
- "8000:8000" | ||
- "${COMPOSE_APP_PORT:-8000}:8000" | ||
depends_on: | ||
- db | ||
environment: | ||
- DJANGO_SUPERUSER_USERNAME=admin | ||
- DJANGO_SUPERUSER_PASSWORD=1234 | ||
- [email protected] | ||
- DATABASE_URL=postgres://postgres:secretpostgres@db:5432/pycontw2016 | ||
command: | ||
- bash | ||
- -c | ||
- | | ||
until pg_isready -h db; do | ||
echo 'Waiting for PostgreSQL to be available...' | ||
sleep 1 | ||
done | ||
python3 manage.py runserver 0.0.0.0:8000 | ||
working_dir: /usr/local/app/src | ||
command: tail -f /dev/null |
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
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
This file was deleted.
Oops, something went wrong.