forked from Minds/minds
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
93 lines (84 loc) · 1.95 KB
/
docker-compose.yml
File metadata and controls
93 lines (84 loc) · 1.95 KB
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
89
90
91
92
93
# Using v2.2 because v3+ is meant for swarm operations
version: "2.2"
services:
cassandra:
image: cassandra:3.11
environment:
- CASSANDRA_START_RPC=true
networks:
- app
mongo:
image: mongo:3.4
networks:
- app
elasticsearch:
image: elasticsearch:5.6-alpine
mem_limit: 512MB # keep an eye
ulimits:
memlock:
soft: -1
hard: -1
environment:
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
networks:
- app
redis:
image: redis:4.0-alpine
mem_limit: 256MB # keep an eye
networks:
- app
rabbitmq:
image: rabbitmq:3.6-alpine
networks:
- app
php-fpm:
build:
context: ./engine
dockerfile: ./containers/php-fpm/Dockerfile
depends_on:
- cassandra
- mongo
- elasticsearch
- rabbitmq
- redis
networks:
- app
volumes:
## The following is for development environments only. Comment out on production. ##
- "./front/:/var/www/Minds/front"
- "./plugins/:/var/www/Minds/plugins"
- "./languages/:/var/www/Minds/languages"
## The following is for development environments only. Comment out on production. ##
- "./engine/:/var/www/Minds/engine"
runners:
build:
context: ./engine
dockerfile: ./containers/php-runners/Dockerfile
depends_on:
- cassandra
# - mongo
# - elasticsearch
# - rabbitmq
- redis
networks:
- app
volumes:
- "./front/:/var/www/Minds/front"
- "./plugins/:/var/www/Minds/plugins"
- "./languages/:/var/www/Minds/languages"
- "./engine/:/var/www/Minds/engine"
nginx:
build:
context: ./containers/nginx
depends_on:
- php-fpm
ports:
- "8080:80"
networks:
- app
volumes:
## The following is for development environments only. Comment out on production. ##
- "./front/:/var/www/Minds/front"
networks:
app:
driver: "bridge"