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

38 lines
797 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
BASE_URL: "http://localhost:8000"
build:
context: .
dockerfile: ./Dockerfile
stdin_open: true
tty: true
command: honcho start
links:
- db:db
ports:
- "8000:8000"
volumes:
- ./project/:/app/project/
- ./static/:/app/static/
- ./templates/:/app/templates/
- ./docker-data/media:/app/media
depends_on:
- db