forked from philomena-dev/philomena
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.06 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3'
volumes:
postgres_data: {}
elastic_data: {}
services:
app:
build:
context: .
dockerfile: ./docker/app/Dockerfile
environment:
- MIX_ENV=dev
- PGPASSWORD=postgres
working_dir: /srv/philomena
tty: true
volumes:
- .:/srv/philomena
depends_on:
- postgres
- elasticsearch
- redis
postgres:
image: postgres:12.3
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'