index.community/docker-compose.yml

44 lines
913 B
YAML
Raw Normal View History

2019-07-14 11:47:06 +00:00
version: "3"
2019-02-20 16:18:12 +00:00
services:
db:
image: postgres
environment:
2019-07-14 11:47:06 +00:00
- DATABASE_URL
2019-02-20 16:18:12 +00:00
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- database_network
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:
2019-07-14 11:47:06 +00:00
- DATABASE_URL
2019-02-21 12:32:50 +00:00
build: ./gephi
volumes:
- gradle-cache:/code/.gradle
depends_on:
- db
networks:
- database_network
phoenix:
build: ./backend
networks:
- database_network
depends_on:
- db
ports:
- "${PORT}:${PORT}"
environment:
- DATABASE_URL
- SECRET_KEY_BASE
- PORT
- BACKEND_HOSTNAME
2019-02-20 16:18:12 +00:00
volumes:
pgdata:
2019-02-21 12:32:50 +00:00
gradle-cache:
networks:
database_network:
driver: bridge