Skip to content

Commit

Permalink
Merge pull request #5 from bcgov/feature/custom-dev-environment
Browse files Browse the repository at this point in the history
Refactored docker-compose to be at room, with .env integration
  • Loading branch information
CodingVelocista authored Aug 21, 2019
2 parents 82e5f3f + 16abe2c commit 2b31990
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DATABASE_NAME=
DATABASE_USER=
DATABASE_PASSWORD=
DEFAULT_EMAIL=
28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3'

services:

web:
image: arm-legacy-web:latest
container_name: arm-legacy-web
build: ./app/backend
command: python manage.py runserver 0.0.0.0:8000
stdin_open: true
tty: true
volumes:
- ./app/backend:/code
ports:
- "8000:8000"

environment:
ENVIRONMENT: dev
DEBUG: 'False'
LOGGER_LEVEL: WARNING
DATABASE_NAME: ${DATABASE_NAME}
DATABASE_USER: ${DATABASE_USER}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
ADMIN_EMAIL: ${DEFAULT_EMAIL}
DEFAULT_FROM_EMAIL: ${DEFAULT_EMAIL}
EMAIL_TO: ${DEFAULT_EMAIL}
SERVER_EMAIL: ${DEFAULT_EMAIL}
SUPPORT_EMAIL: ${DEFAULT_EMAIL}

0 comments on commit 2b31990

Please sign in to comment.