Created
April 19, 2021 18:57
-
-
Save yassineselmi/1d929dced4e069fb338b2b4fbd8c5a0e to your computer and use it in GitHub Desktop.
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
version: '3.7' | |
services: | |
web: | |
image: django:latest | |
command: gunicorn hello_django.wsgi:application --bind 0.0.0.0:8000 | |
volumes: | |
- static_volume:/home/app/web/staticfiles | |
- media_volume:/home/app/web/mediafiles | |
ports: | |
- "8000:8000" | |
environment: | |
SQL_ENGINE: django.db.backends.postgresql | |
SQL_DATABASE: hello_django # change this | |
SQL_USER: hello_django # change this | |
SQL_PASSWORD: hello_django # change this | |
SQL_HOST: db # change this | |
SQL_PORT: 5432 # change this | |
volumes: | |
static_volume: | |
media_volume: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment