-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (58 loc) · 1.12 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
62
63
version: '3'
volumes:
postgres_data: {}
elastic_data: {}
services:
app:
build:
context: .
dockerfile: ./docker/app/Dockerfile
environment:
# - MIX_ENV=test
- MIX_ENV=dev
# - MIX_ENV=prod
- PGPASSWORD=postgres
working_dir: /srv/philomena
tty: true
volumes:
- .:/srv/philomena
depends_on:
- postgres
- elasticsearch
- redis
postgres:
image: postgres:12.4
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data:/var/lib/postgresql/data
#logging:
# driver: "json"
elasticsearch:
image: elasticsearch:7.8.1
volumes:
- elastic_data:/var/lib/elasticsearch
#logging:
#driver: "json"
environment:
- discovery.type=single-node
ulimits:
nofile:
soft: 65536
hard: 65536
redis:
image: redis:6.0.7
#logging:
# driver: "json"
web:
build:
context: .
dockerfile: ./docker/web/Dockerfile
volumes:
- .:/srv/philomena
# logging:
# driver: "json"
depends_on:
- app
ports:
- '8080:80'