-
Notifications
You must be signed in to change notification settings - Fork 0
Configure and setup docker #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
33c9433
Configure and setup docker
APIYOJENNIFER 58f228e
Remove mkdir command
APIYOJENNIFER 82e1261
Remove compose file from gitignore, add env_file
APIYOJENNIFER 6df7df6
Remove variables from Dockerfile
APIYOJENNIFER ecc3e72
Move postgres password to env file
APIYOJENNIFER f63d100
Update docker-compose.dev file
APIYOJENNIFER e3129aa
Remove env_file
APIYOJENNIFER 696b43c
Update to python 3.9
APIYOJENNIFER 1bdcf80
Add explicit versions for requirements
APIYOJENNIFER File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| FROM python:3.9 | ||
|
|
||
| WORKDIR /postit | ||
|
|
||
| COPY requirements.txt . | ||
|
|
||
| RUN pip install -r requirements.txt | ||
|
|
||
| EXPOSE 8000 | ||
|
|
||
| CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| services: | ||
| db: | ||
| image: postgres | ||
| environment: | ||
| - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} | ||
| env_file: | ||
| - .env | ||
| web: | ||
| build: . | ||
| command: python manage.py runserver 0.0.0.0:8000 | ||
| volumes: | ||
| - .:/postit | ||
| ports: | ||
| - "8000:8000" | ||
| depends_on: | ||
| - db | ||
| environment: | ||
| - SECRET_KEY=${SECRET_KEY} | ||
| - DB_NAME=${DB_NAME} | ||
| - DB_USER=${DB_USER} | ||
| - DB_PASSWORD=${DB_PASSWORD} | ||
| - DB_HOST=${DB_HOST} | ||
| - DB_PORT=${DB_PORT} | ||
| env_file: | ||
| - .env | ||
| tty: true | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| services: | ||
| db: | ||
| image: postgres | ||
| environment: | ||
| - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} | ||
| web: | ||
| build: . | ||
| command: python manage.py runserver 0.0.0.0:8000 | ||
| volumes: | ||
| - .:/postit | ||
| ports: | ||
| - "8000:8000" | ||
| depends_on: | ||
| - db | ||
| environment: | ||
| - SECRET_KEY=${SECRET_KEY} | ||
| - DB_NAME=${DB_NAME} | ||
| - DB_USER=${DB_USER} | ||
| - DB_PASSWORD=${DB_PASSWORD} | ||
| - DB_HOST=${DB_HOST} | ||
| - DB_PORT=${DB_PORT} | ||
| tty: true |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| django | ||
| djangorestframework | ||
| psycopg2 | ||
| django-environ | ||
| pylint | ||
| flake8 | ||
| pylint-django | ||
| Django==4.2.6 | ||
| django-environ==0.11.2 | ||
| djangorestframework==3.14.0 | ||
| flake8==6.1.0 | ||
| psycopg2==2.9.9 | ||
| pylint==3.0.2 | ||
| pylint-django==2.5.5 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.