index.community/docker-compose.yml

46 lines
1 KiB
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
2019-02-21 10:26:55 +00:00
django:
2019-02-20 16:18:12 +00:00
environment:
# Set these in .env
- SECRET_KEY
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- DJANGO_SETTINGS_MODULE
2019-02-20 20:10:33 +00:00
- ENVIRONMENT=development
2019-02-21 10:26:55 +00:00
build: ./backend
2019-02-20 16:18:12 +00:00
command: bash scripts/docker-entrypoint.sh
volumes:
2019-02-21 10:26:55 +00:00
- ./backend:/code
2019-02-20 16:18:12 +00:00
ports:
- "8000:8000"
depends_on:
- db
2019-02-21 12:32:50 +00:00
# This is for running the occasional graph layout task. It's in docker-compose.yml so that it's built at the same time
# as everything else, but it should be run regularly with a cron job or similar.
gephi:
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
build: ./gephi
volumes:
- gradle-cache:/code/.gradle
depends_on:
- db
2019-02-20 16:18:12 +00:00
volumes:
pgdata:
2019-02-21 12:32:50 +00:00
gradle-cache: