-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
114 lines (114 loc) · 3.44 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: "3.3"
services:
database:
image: mariadb:10.5
container_name: integracao_mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: "tainacan"
MARIADB_DATABASE: "tainacan"
MARIADB_USER: "tainacan"
MARIADB_PASSWORD: "tainacan"
volumes:
- ./dbdata:/var/lib/mysql
- ./init.d/mysql:/docker-entrypoint-initdb.d
tainacan:
image: tainacan/php:7.4-fpm-apache
container_name: integracao_tainacan
restart: always
ports:
- "80:80"
environment:
#site config:
SITE_LANGUAGE: en_US
SITE_URL: http://localhost
SITE_TITLE: Tainacan
SITE_ADMIN_USER: tainacan
SITE_ADMIN_EMAIL: [email protected]
SITE_ADMIN_PASSWORD: tainacan
#wordpress config:
DBNAME: tainacan
DB_USER: tainacan
DB_PSWD: tainacan
DB_HOST: "integracao_mariadb:3306"
#APACHE,PHP,FPM config
PHP_POST_MAX_SIZE: "200M"
PHP_UPLOAD_MAX_FILE_SIZE: "200M"
PHP_MAX_EXECUTION_TIME: "300"
PHP_MEMORY_LIMIT: "512M"
PHP_POOL_NAME: "www"
PHP_DATE_TIMEZONE: "UTC"
PHP_DISPLAY_ERRORS: "On"
PHP_ERROR_REPORTING: "E_ALL & ~E_DEPRECATED & ~E_STRICT"
PHP_PM_CONTROL: ondemand
PHP_PM_MAX_CHILDREN: "20"
PHP_PM_START_SERVERS: "2"
PHP_PM_MIN_SPARE_SERVERS: "1"
PHP_PM_MAX_SPARE_SERVERS: "3"
MSMTP_RELAY_SERVER_HOSTNAME: "mailhog"
MSMTP_RELAY_SERVER_PORT: "1025"
APACHE_DOCUMENT_ROOT: "/var/www/html/public"
APACHE_START_SERVERS: "2"
APACHE_MIN_SPARE_THREADS: "10"
APACHE_MAX_SPARE_THREADS: "75"
APACHE_THREAD_LIMIT: "64"
APACHE_THREADS_PER_CHILD: "25"
APACHE_MAX_REQUEST_WORKERS: "150"
APACHE_MAX_CONNECTIONS_PER_CHILD: "0"
APACHE_RUN_USER: "webuser"
APACHE_RUN_GROUP: "webgroup"
volumes:
- ./tainacan/html:/var/www/html/
depends_on:
- database
elasticsearch:
container_name: integracao_tnc_elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.0
environment:
- discovery.type=single-node
- cluster.routing.allocation.disk.watermark.flood_stage=99%
- cluster.routing.allocation.disk.watermark.high=98%
deploy:
resources:
limits:
memory: 6144M
volumes:
- ./esdata:/usr/share/elasticsearch/data
logstash:
container_name: integracao_tnc_logstash
build:
context: .
dockerfile: ./logstash/Dockerfile
environment:
LS_JAVA_OPTS: "-Xmx1024m -Xms1024m"
volumes:
- ./logstash/data:/usr/share/logstash/data
- ./logstash/pipeline:/usr/share/logstash/pipeline
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml
- ./logstash/writeLog.log:/usr/share/logstash/writeLog.log
depends_on:
- elasticsearch
filebeat:
container_name: integracao_tnc_filebeat
hostname: filebeat
user: root
environment:
- BEAT_STRICT_PERMS=false
image: docker.elastic.co/beats/filebeat:7.17.0
volumes:
- ./filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml
- ./filebeat/inputs.d:/usr/share/filebeat/inputs.d
- ./filebeat/fbdata:/usr/share/filebeat/data/
restart: on-failure
depends_on:
- elasticsearch
- logstash
kibana:
container_name: integracao_tnc_kibana
image: docker.elastic.co/kibana/kibana:7.9.0
ports:
- 6601:5601
#volumes:
# - ./kibana/config:/usr/share/kibana/config/
depends_on:
- elasticsearch