index.community/docker-compose.yml

66 lines
1.3 KiB
YAML
Raw Permalink 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-07-26 22:30:11 +00:00
elasticsearch:
image: elasticsearch:6.8.1
ports:
- "9200:9200"
volumes:
- esdata:/usr/share/elasticsearch/data
networks:
- phoenix_network
- es_network
# Kibana is just for development, really
kibana:
image: kibana:6.8.1
networks:
- es_network
ports:
- "5601:5601"
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
2019-07-26 22:30:11 +00:00
- phoenix_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-07-26 22:30:11 +00:00
esdata:
2019-02-21 12:32:50 +00:00
gradle-cache:
networks:
database_network:
driver: bridge
2019-07-26 22:30:11 +00:00
phoenix_network:
driver: bridge
es_network:
driver: bridge