1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
wagtail-website-2018-spike/docker-compose.yml

33 lines
655 B
YAML

version: '3'
services:
db:
environment:
POSTGRES_DB: app_db
POSTGRES_USER: app_user
POSTGRES_PASSWORD: changeme
restart: always
image: postgres:10-alpine
expose:
- "5432"
volumes:
- ./docker-data/postgres-data:/var/lib/postgresql
app:
environment:
DJANGO_SECRET_KEY: changeme
DATABASE_URL: postgres://app_user:changeme@db/app_db
build:
context: .
dockerfile: ./Dockerfile
stdin_open: true
tty: true
command: ./manage.py runserver 0.0.0.0:8000
links:
- db:db
ports:
- "8000:8000"
volumes:
- ".:/app"
depends_on:
- db