-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
88 lines (82 loc) · 2.28 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
88
version: "2.2"
services:
web:
image: nginx
container_name: web
ports:
- 8080:80
volumes:
- ./web/nginx.conf:/etc/nginx/nginx.conf
- ../splash-client/dist:/usr/share/nginx/html
db:
image: mongo:4.4
hostname: mongo
container_name: db
environment:
- TZ=US/Pacific
expose:
- 27017
- 27018
ports:
- 27017:27017
restart: always
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0"]
volumes:
- ${MONGO_DB_LOC}:/data/db
## On Linux hosts, you need to set sysctl -w vm.max_map_count=262144
## see: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-prod-cluster-composefile
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.1
container_name: elasticsearch
hostname: elasticsearch
environment:
# - cluster.name=docker-cluster
# - bootstrap.memory_lock=true
#- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"\
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ${ELASTIC_DATA_LOC}:/usr/share/elasticsearch/data
expose:
- 9200
- 9300
monstache:
image: rwynn/monstache:rel6
container_name: monstache
working_dir: /app
command: -f ./monstache.config.toml -mongo-url=mongodb://db:27017 -elasticsearch-url=http://elasticsearch:9200 #-direct-read-namespace=db.heartbeat -direct-read-split-max=2
restart: unless-stopped
environment:
MONSTACHE_NS_REGEX: ${MONSTACHE_NAMESPACE_REGEX}
volumes:
- ./monstache:/app
app:
container_name: app
build:
context: ../splash-server
dockerfile: Dockerfile
stdin_open: true
tty: true
environment:
APP_MODULE: "splash.api.main:app"
LOGLEVEL: DEBUG
SPLASH_SERVER_DIR: /app/splash
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
TOKEN_SECRET_KEY: ${SECRET_KEY}
MONGO_DB_URI: mongodb://db:27017
volumes:
- ../splash-server:/app
- ./app/catalogs.yml:/usr/local/share/intake/catalogs.yml
- ${INGESTOR_PATH_TO_DATA}:/usr/local/data
ports:
- 8000:80
stastd:
image: prom/statsd-exporter
container_name: statsd
expose:
- 9125
- 9102