forked from als-computing/splash-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (66 loc) · 1.99 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
version: "2.2"
services:
web:
image: nginx
ports:
- 80:80
- 443:443
- 9200:9200
volumes:
- ./web/nginx.conf:/etc/nginx/nginx.conf
- ../splash-client/dist:/usr/share/nginx/html
db:
image: mongo:4.1
hostname: mongo
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.5.0
container_name: 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
command: -mongo-url=mongodb://db:27017 -elasticsearch-url=http://elasticsearch:9200 #-direct-read-namespace=db.heartbeat -direct-read-split-max=2
restart: unless-stopped
app:
build:
context: ../splash-server
dockerfile: Dockerfile
stdin_open: true
tty: true
environment:
#MONGO_URL: mongodb://172.18.0.5:27017
LOGLEVEL: DEBUG
SPLASH_SERVER_DIR: /app/splash
volumes:
- ./splash-server/splash:/app/splash
- ./app/config.cfg:/app/splash/config.cfg
# entrypoint: [ "python", "server.py", "runserver"]
entrypoint: [ "uwsgi", "--socket", "0.0.0.0:3031", "--uid", "uwsgi", "--master", "--processes", "8", "--protocol", "uwsgi", "--wsgi", "server:app", "--stats", "127.0.0.1:1717", "--stats-http"]
ports:
- 8000:8000