30 lines
591 B
YAML
30 lines
591 B
YAML
version: '2'
|
|
services:
|
|
db:
|
|
build:
|
|
context: ./_dockerfiles/db
|
|
dockerfile: Dockerfile
|
|
hostname: db
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DB=postgres
|
|
ports:
|
|
- "5436:5432"
|
|
|
|
# App: G&M
|
|
gm_app:
|
|
build: .
|
|
command: python manage.py runserver 0.0.0.0:8000
|
|
environment:
|
|
- SETTINGS_CONFIGURATION=local
|
|
- DB_HOSTNAME=db
|
|
- DB_PORT=5432
|
|
- DB_NAME=postgres
|
|
- DB_USERNAME=postgres
|
|
- DB_PASSWORD=postgres
|
|
depends_on:
|
|
- db
|
|
ports:
|
|
- "8000:8000"
|