consolidate into one docker-compose.yml

This commit is contained in:
Tao Bror Bojlén 2019-07-14 14:40:35 +01:00
parent 6267e18f98
commit f292d09b01
No known key found for this signature in database
GPG Key ID: C6EC7AAB905F9E6F
1 changed files with 20 additions and 0 deletions

View File

@ -8,6 +8,8 @@ services:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- database_network
# 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:
@ -18,6 +20,24 @@ services:
- 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
volumes:
pgdata:
gradle-cache:
networks:
database_network:
driver: bridge