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
|
2020-05-28 01:39:33 +02:00
|
|
|
- PGPASSWORD=postgres
|
2019-12-03 03:04:59 +01:00
|
|
|
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:
|
2020-06-17 13:19:54 +02:00
|
|
|
image: postgres:12.3
|
2020-05-04 14:19:42 +02:00
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
2019-12-03 03:04:59 +01:00
|
|
|
volumes:
|
|
|
|
- postgres_data:/var/lib/postgresql/data
|
2019-12-07 06:49:20 +01:00
|
|
|
logging:
|
|
|
|
driver: "none"
|
2019-12-03 03:04:59 +01:00
|
|
|
|
|
|
|
elasticsearch:
|
2020-08-14 07:24:14 +02:00
|
|
|
image: elasticsearch:7.8.1
|
2019-12-03 03:04:59 +01:00
|
|
|
volumes:
|
|
|
|
- elastic_data:/var/lib/elasticsearch
|
2019-12-07 06:49:20 +01:00
|
|
|
logging:
|
|
|
|
driver: "none"
|
2020-05-04 14:19:42 +02:00
|
|
|
environment:
|
|
|
|
- discovery.type=single-node
|
2019-12-03 03:17:13 +01:00
|
|
|
ulimits:
|
|
|
|
nofile:
|
|
|
|
soft: 65536
|
|
|
|
hard: 65536
|
2019-12-03 03:04:59 +01:00
|
|
|
|
|
|
|
redis:
|
2020-04-27 21:18:43 +02:00
|
|
|
image: redis:5.0.9
|
2019-12-07 06:49:20 +01:00
|
|
|
logging:
|
|
|
|
driver: "none"
|
2019-12-03 03:04:59 +01:00
|
|
|
|
|
|
|
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
|
2019-12-07 06:49:20 +01:00
|
|
|
logging:
|
|
|
|
driver: "none"
|
2019-12-03 03:04:59 +01:00
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
ports:
|
2019-12-19 23:39:34 +01:00
|
|
|
- '8080:80'
|