index.community/docker-compose.yml
Tao Bror Bojlén 795ad67e8b
dockerize gephi
2019-02-21 12:32:50 +00:00

46 lines
1 KiB
YAML

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
django:
environment:
# Set these in .env
- SECRET_KEY
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- DJANGO_SETTINGS_MODULE
- ENVIRONMENT=development
build: ./backend
command: bash scripts/docker-entrypoint.sh
volumes:
- ./backend:/code
ports:
- "8000:8000"
depends_on:
- db
# 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
volumes:
pgdata:
gradle-cache: