-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
80 lines (73 loc) · 1.58 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
version: '3.9'
services:
mysql:
container_name: bootcamp-mysql
networks:
bootcamp-web:
image: mysql:5.7
command: mysqld --sql_mode=""
environment:
MYSQL_DATABASE: 'crm'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
ports:
- "3306:3306"
volumes:
- ./data/mysql:/var/lib/mysql:delegated
mongodb:
image: mongo
container_name: bootcamp-mongodb
ports:
- "27017:27017"
environment:
- MONGO_INITDB_DATABASE=crm
redis:
image: redis
container_name: bootcamp-redis
ports:
- "6379:6379"
kibana:
image: docker.elastic.co/kibana/kibana:5.1.2
container_name: bootcamp-kibana
networks:
bootcamp-web:
domainname: local.com
hostname: kibana
ports:
- "5601:5601"
links:
- elasticsearch
environment:
- "ELASTICSEARCH_URL=http://elasticsearch:9200"
php:
build:
context: ./6.crud-php
networks:
bootcamp-web:
container_name: bootcamp-php
volumes:
- type: bind
source: ./6.crud-php
target: /var/www/html
ports:
- 443:443
- 80:80
tty: true
stdin_open: true
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.1.2
container_name: bootcamp-elasticsearch
networks:
bootcamp-web:
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
networks:
bootcamp-web: