提交 9aa343c5 authored 作者: chenhuan's avatar chenhuan

fix

上级 dfbde9a5
...@@ -3,4 +3,9 @@ FROM golang:latest ...@@ -3,4 +3,9 @@ FROM golang:latest
MAINTAINER Razil "chenhuan@liaosearch.com" MAINTAINER Razil "chenhuan@liaosearch.com"
ADD librdkafka /librdkafka
RUN cd /librdkafka && make && make install
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct
\ No newline at end of file
...@@ -61,7 +61,7 @@ RUN buildDeps='curl gcc make autoconf libc-dev zlib1g-dev pkg-config' \ ...@@ -61,7 +61,7 @@ RUN buildDeps='curl gcc make autoconf libc-dev zlib1g-dev pkg-config' \
php7.4-intl \ php7.4-intl \
php7.4-xml \ php7.4-xml \
php-pear \ php-pear \
&& pecl -d php_suffix=7.4 install -o -f redis memcached \ && pecl -d php_suffix=7.4 install -o -f redis memcached mongodb \
&& mkdir -p /run/php \ && mkdir -p /run/php \
&& pip install wheel \ && pip install wheel \
&& pip install supervisor supervisor-stdout \ && pip install supervisor supervisor-stdout \
......
...@@ -7,6 +7,13 @@ sed -i -e "s/worker_processes 1/worker_processes $procs/" /etc/nginx/nginx.conf ...@@ -7,6 +7,13 @@ sed -i -e "s/worker_processes 1/worker_processes $procs/" /etc/nginx/nginx.conf
# Always chown webroot for better mounting # Always chown webroot for better mounting
chown -Rf nginx.nginx /usr/share/nginx/html chown -Rf nginx.nginx /usr/share/nginx/html
myEnv="/srv/.env"
if [ -f "$myEnv" ]; then
cp /srv/.env /src/www/.env
fi
# Start supervisord and services # Start supervisord and services
/usr/local/bin/supervisord -n -c /etc/supervisord.conf /usr/local/bin/supervisord -n -c /etc/supervisord.conf
......
FROM docker.elastic.co/beats/filebeat:7.3.2
\ No newline at end of file
filebeat.inputs:
- type: log
enabled: true
paths:
- /var/log/nginx/*.log
output.logstash:
enabled: true
hosts: ["logstash:5044"]
# FIXME: Cannot reach the hosts of Logstash
# output.elasticsearch:
# hosts: ["http://elasticsearch:9200"]
# username: "elastic"
# password: "changeme"
setup.kibana:
host: "http://kibana:5601"
username: "elastic"
password: "changeme"
\ No newline at end of file
version: '3.2'
services:
filebeat:
build: ./filebeat
entrypoint: "filebeat -e -strict.perms=false"
volumes:
- ./config/filebeat.yml:/usr/share/filebeat/filebeat.yml
- ./nginx/log:/var/log/nginx
networks:
- elk
networks:
elk:
driver: bridge
volumes:
elasticsearch:
# 该Yaml文件改编自DockerHub中的配置文件
version: '3.8'
services:
mongo:
image: mongo:4.4.0 #根据需要选择自己的镜像
restart: always
ports:
- 27016:27017 #对外暴露停供服务的端口,正式生产的时候理论不用暴露。
volumes:
- ./data/db:/data/db # 挂载数据目录
- ./data/log:/var/log/mongodb # 挂载日志目录
- ./data/config:/etc/mongo # 挂载配置目录
# command: --config /docker/mongodb/mongod.conf # 配置文件
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /data/db
journal:
enabled: true
directoryPerDB: true
engine: wiredTiger
wiredTiger:
engineConfig:
cacheSizeGB: 8
directoryForIndexes: true
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# network interfaces
net:
port: 27017
bindIp: 0.0.0.0
# how the process runs
processManagement:
timeZoneInfo: /usr/share/zoneinfo
#replication:
replication:
oplogSizeMB: 51200
replSetName: rs0
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论