forked from commsy/commsy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (50 loc) · 982 Bytes
/
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
version: "3.4"
services:
db:
image: mariadb:10.4
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=commsy
- MYSQL_USER=commsy
- MYSQL_PASSWORD=commsy
volumes:
- db-data:/var/lib/mysql:rw
ports:
- "3106:3306"
elastic:
build: ./docker/elasticsearch
ports:
- "9200:9200"
volumes:
- elastic-data:/usr/share/elasticsearch/data
environment:
- "discovery.type=single-node"
- "bootstrap.memory_lock=true"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nginx:
image: commsy/nginx
build:
context: ./
target: commsy_nginx
depends_on:
- php
ports:
- "81:80"
php:
image: commsy/php
build:
context: .
target: commsy_php
depends_on:
- db
- elastic
volumes:
- commsy-data:/var/www/html/files
volumes:
db-data:
elastic-data:
commsy-data: