version: "3" services: db: image: postgres environment: - DATABASE_URL ports: - "5432:5432" volumes: - pgdata:/var/lib/postgresql/data # 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: - DATABASE_URL build: ./gephi volumes: - gradle-cache:/code/.gradle depends_on: - db volumes: pgdata: gradle-cache: