philomena/docker-compose.yml

62 lines
1.1 KiB
YAML
Raw Normal View History

2019-12-02 21:04:59 -05:00
version: '3'
volumes:
postgres_data: {}
elastic_data: {}
services:
app:
build:
context: .
dockerfile: ./docker/app/Dockerfile
environment:
- MIX_ENV=dev
2020-05-27 19:39:33 -04:00
- PGPASSWORD=postgres
2019-12-02 21:04:59 -05:00
working_dir: /srv/philomena
2019-12-03 13:36:50 -05:00
tty: true
2019-12-02 21:04:59 -05:00
volumes:
- .:/srv/philomena
depends_on:
- postgres
- elasticsearch
- redis
postgres:
2020-06-17 07:19:54 -04:00
image: postgres:12.3
environment:
- POSTGRES_PASSWORD=postgres
2019-12-02 21:04:59 -05:00
volumes:
- postgres_data:/var/lib/postgresql/data
2019-12-07 00:49:20 -05:00
logging:
driver: "none"
2019-12-02 21:04:59 -05:00
elasticsearch:
image: elasticsearch:7.8.1
2019-12-02 21:04:59 -05:00
volumes:
- elastic_data:/var/lib/elasticsearch
2019-12-07 00:49:20 -05:00
logging:
driver: "none"
environment:
- discovery.type=single-node
2019-12-02 21:17:13 -05:00
ulimits:
nofile:
soft: 65536
hard: 65536
2019-12-02 21:04:59 -05:00
redis:
2020-04-27 15:18:43 -04:00
image: redis:5.0.9
2019-12-07 00:49:20 -05:00
logging:
driver: "none"
2019-12-02 21:04:59 -05:00
web:
build:
context: .
2019-12-03 13:36:50 -05:00
dockerfile: ./docker/web/Dockerfile
2019-12-02 21:04:59 -05:00
volumes:
- .:/srv/philomena
2019-12-07 00:49:20 -05:00
logging:
driver: "none"
2019-12-02 21:04:59 -05:00
depends_on:
- app
ports:
- '8080:80'