philomena/docker-compose.yml
2020-04-27 23:22:47 -04:00

56 lines
956 B
YAML

version: '3'
volumes:
postgres_data: {}
elastic_data: {}
services:
app:
build:
context: .
dockerfile: ./docker/app/Dockerfile
environment:
- MIX_ENV=dev
working_dir: /srv/philomena
tty: true
volumes:
- .:/srv/philomena
depends_on:
- postgres
- elasticsearch
- redis
postgres:
image: postgres:12.2
volumes:
- postgres_data:/var/lib/postgresql/data
logging:
driver: "none"
elasticsearch:
image: elasticsearch:6.8.5
volumes:
- elastic_data:/var/lib/elasticsearch
logging:
driver: "none"
ulimits:
nofile:
soft: 65536
hard: 65536
redis:
image: redis:5.0.9
logging:
driver: "none"
web:
build:
context: .
dockerfile: ./docker/web/Dockerfile
volumes:
- .:/srv/philomena
logging:
driver: "none"
depends_on:
- app
ports:
- '8080:80'