Forked from yassineselmi/docker-compose-django.example.yml
Created
September 23, 2021 17:27
-
-
Save jwieder/b80d4bb641e7efa477fe87e529bf6afb 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