Skip to content

Instantly share code, notes, and snippets.

@yassineselmi
Created April 19, 2021 18:57
Show Gist options
  • Save yassineselmi/1d929dced4e069fb338b2b4fbd8c5a0e to your computer and use it in GitHub Desktop.
Save yassineselmi/1d929dced4e069fb338b2b4fbd8c5a0e to your computer and use it in GitHub Desktop.
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