-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (81 loc) · 1.94 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
version: "2.1"
services:
meerkat:
build:
dockerfile: Dockerfile
context: ./packages/meerkat
environment:
- KAFKA_VERSION=2.2.0
- LOG_TAG_SERVICE=meerkat
- ENVIRONMENT=DEVELOPMENT
- APP_URL=http://localhost:8021
- MONGO_HOST=skel_db
- MONGO_PORT=27017
- MONGO_DB=meerkat
ports:
- "8000:8000"
depends_on:
- skel_es
- skel_db
entrypoint:
- sh
- .docker/entrypoint.sh
volumes:
- ./:/code
- /code/packages/meerkat/.venv
links:
- skel_es
- skel_db
nginx:
build:
context: ./.docker/nginx/
dockerfile: Dockerfile
volumes:
- ./.docker/nginx/site.conf:/etc/nginx/conf.d/site.template
- ./.docker/logs/nginx:/var/log/nginx:cached
ports:
- "8021:80"
environment:
- NGINX_HOST=localhost
- NGINX_PORT=80
- PROXY_HOST=meerkat
- PROXY_PORT=8000
depends_on:
- meerkat
command: /bin/bash -c "envsubst < /etc/nginx/conf.d/site.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"
skel_db:
image: mongo:latest
environment:
- MONGO_DATA_DIR=/usr/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- .data/db:/usr/data/db
ports:
- 27017:27017
command: mongod --smallfiles --logpath=/dev/null # --quiet
skel_es:
build:
context: ./.docker/es
dockerfile: Dockerfile
command: elasticsearch
container_name: skel_es
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail 127.0.0.1:9200/_cluster/health || exit 1"]
interval: 20s
timeout: 30s
retries: 3
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- bootstrap.memory_local=true
- cluster.name=talks-cluster
ports:
- "9200:9200"
- "9300:9300"
volumes:
- skel_es:/usr/share/elasticsearch/data
volumes:
skel_grafana_vol:
skel_graf_db:
skel_es:
prom_data: {}