2019-12-03 03:04:59 +01:00
|
|
|
version: '3'
|
|
|
|
volumes:
|
|
|
|
postgres_data: {}
|
|
|
|
elastic_data: {}
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/app/Dockerfile
|
|
|
|
environment:
|
|
|
|
- MIX_ENV=dev
|
|
|
|
working_dir: /srv/philomena
|
2019-12-03 19:36:50 +01:00
|
|
|
tty: true
|
2019-12-03 03:04:59 +01:00
|
|
|
volumes:
|
|
|
|
- .:/srv/philomena
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- elasticsearch
|
|
|
|
- redis
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres:12.1
|
|
|
|
volumes:
|
|
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
elasticsearch:
|
|
|
|
image: elasticsearch:6.8.5
|
|
|
|
volumes:
|
|
|
|
- elastic_data:/var/lib/elasticsearch
|
2019-12-03 03:17:13 +01:00
|
|
|
ulimits:
|
|
|
|
nofile:
|
|
|
|
soft: 65536
|
|
|
|
hard: 65536
|
2019-12-03 03:04:59 +01:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:5.0.7
|
|
|
|
|
|
|
|
web:
|
|
|
|
build:
|
|
|
|
context: .
|
2019-12-03 19:36:50 +01:00
|
|
|
dockerfile: ./docker/web/Dockerfile
|
2019-12-03 03:04:59 +01:00
|
|
|
volumes:
|
|
|
|
- .:/srv/philomena
|
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
ports:
|
2019-12-03 03:17:13 +01:00
|
|
|
- '8080:80'
|