Last active
March 6, 2017 10:35
-
-
Save greut/97477b83dfa02ef74750c4c38a6d7def to your computer and use it in GitHub Desktop.
Simple local django setup with Docker.
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: '2' | |
volumes: | |
postgres_data: | |
services: | |
postgres: | |
image: postgres:9.6-alpine | |
environment: | |
- POSTGRES_USER=django | |
- POSTGRES_PASSWORD=django | |
- POSTGRES_PGDATA=/var/lib/postgresql/data/pgdata | |
volumes: | |
- postgres_data:/var/lib/postgresql/data | |
ports: | |
- 5432:5432 | |
redis: | |
image: redis:3.2-alpine | |
ports: | |
- 6379:6379 | |
smtp: | |
image: mailhog/mailhog | |
ports: | |
- 1025:1025 | |
- 8025:8025 |
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
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql_psycopg2', | |
'NAME': 'django', | |
'USER': 'django', | |
'PASSWORD': 'django', | |
'HOST': '127.0.0.1', | |
'PORT': 5432 | |
} | |
} | |
MAIL_HOST="127.0.0.1" | |
MAIL_PORT=1025 | |
REDIS_HOST="127.0.0.1" | |
REDIS_PORT=6379 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment