Make local.yml just run a postgres + mailhog instance

This commit is contained in:
Anna Sidwell 2018-11-24 13:39:21 +00:00
parent a0c7846704
commit ad64b646b1
2 changed files with 3 additions and 36 deletions

View File

@ -1,17 +0,0 @@
# Django Configuration
DEBUG=1
ALLOWED_HOSTS=localhost
DATABASE_HOST=db
DATABASE_NAME=postgres
DATABASE_PASSWORD=postgres
EMAIL_HOST=mail
EMAIL_HOST_USER=admin@ojuso.org
EMAIL_HOST_PASSWORD=
EMAIL_PORT=1025
EMAIL_USE_TLS=0
SECRET_KEY=kZQPK56roVhFkwPqFF9xZoHFlw38uVuXNCjtXor6FRiieiYds9ltuM6oZeZ75CEe
SERVER_EMAIL=Ojuso Platform Notification <livvy@base.nu>
# Postgres Database Setup
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres

View File

@ -1,22 +1,5 @@
version: '3'
services:
map:
build: .
links:
- db:db
- mailhog:mail
volumes:
- .containers/map/static:/app/static
- .containers/map/gunicorn.sock:/app/gunicorn.sock
- ./apps:/app/apps
- ./ojusomap:/app/ojusomap
- ./support:/app/support
ports:
- 8000:8000
env_file:
- ./local.env
command: /bin/sh -c "python3 manage.py runserver 0.0.0.0:8000"
db:
image: mdillon/postgis:9.6-alpine
volumes:
@ -24,8 +7,9 @@ services:
- ./support/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
ports:
- 5432:5432
env_file:
- ./local.env
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
mailhog:
image: mailhog/mailhog