Make local.yml just run a postgres + mailhog instance
This commit is contained in:
parent
a0c7846704
commit
ad64b646b1
17
local.env
17
local.env
@ -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
|
|
22
local.yml
22
local.yml
@ -1,22 +1,5 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
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:
|
db:
|
||||||
image: mdillon/postgis:9.6-alpine
|
image: mdillon/postgis:9.6-alpine
|
||||||
volumes:
|
volumes:
|
||||||
@ -24,8 +7,9 @@ services:
|
|||||||
- ./support/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
- ./support/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
env_file:
|
environment:
|
||||||
- ./local.env
|
- POSTGRES_USER=postgres
|
||||||
|
- POSTGRES_PASSWORD=postgres
|
||||||
|
|
||||||
mailhog:
|
mailhog:
|
||||||
image: mailhog/mailhog
|
image: mailhog/mailhog
|
||||||
|
Loading…
Reference in New Issue
Block a user