index.community/docker-compose.yml

33 lines
634 B
YAML
Raw Normal View History

2019-02-20 16:18:12 +00:00
version: '3'
services:
db:
image: postgres
environment:
# Set these in .env
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
web:
environment:
# Set these in .env
- SECRET_KEY
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- DJANGO_SETTINGS_MODULE
2019-02-20 17:14:28 +00:00
- ENVIRONMENT=development
2019-02-20 16:18:12 +00:00
build: ./backend/api
command: bash scripts/docker-entrypoint.sh
volumes:
- ./backend/api:/code
ports:
- "8000:8000"
depends_on:
- db
volumes:
pgdata: