-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (49 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
version: '3'
services:
web:
container_name: analyticky-web
build:
context: .
dockerfile: Dockerfile
tty: true
stdin_open: true
volumes:
- .:/analyticky/
- ${GEMS_CACHE_DIR:-bundle}:/bundle
ports: ["3002:3000"]
environment:
- RAILS_ENV=development
- BUNDLE_PATH=/bundle/vendor
links:
- elasticsearch
- db
depends_on:
- elasticsearch
- db
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.3
environment:
- discovery.type=single-node
- network.host=0.0.0.0
ports:
- "9201:9200"
kibana:
image: docker.elastic.co/kibana/kibana:7.9.3
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_URL=http://localhost:9201
- ELASTICSEARCH_PORT=9201
depends_on:
- elasticsearch
db:
image: postgres:12.3
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports: ["5433:5432"]
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
bundle:
postgres-data: