mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
6bbe358dd1
* initial upgrade to elasticsearch 7 * fix stat page error * i am an idiot * fix es not creating new indexes * more complete removal of doc_type Co-authored-by: Luna D <cod7777@yandex.ru>
60 lines
1 KiB
YAML
60 lines
1 KiB
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
|
|
environment:
|
|
- POSTGRES_PASSWORD=postgres
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
logging:
|
|
driver: "none"
|
|
|
|
elasticsearch:
|
|
image: elasticsearch:7.6.2
|
|
volumes:
|
|
- elastic_data:/var/lib/elasticsearch
|
|
logging:
|
|
driver: "none"
|
|
environment:
|
|
- discovery.type=single-node
|
|
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'
|