* elastic use include
+ add secrets to example
This commit is contained in:
@ -73,9 +73,6 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: 123456
|
MYSQL_ROOT_PASSWORD: 123456
|
||||||
volumes:
|
|
||||||
- database:/var/lib/mysql
|
|
||||||
- ./hostfiles:/hostfiles
|
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
pma:
|
pma:
|
||||||
|
@ -13,12 +13,6 @@ services:
|
|||||||
soft: -1
|
soft: -1
|
||||||
hard: -1
|
hard: -1
|
||||||
mem_limit: 2g
|
mem_limit: 2g
|
||||||
volumes:
|
|
||||||
- elastic:/usr/share/elasticsearch/data
|
|
||||||
expose:
|
expose:
|
||||||
- "9200"
|
- "9200"
|
||||||
- "9300"
|
- "9300"
|
||||||
|
|
||||||
# Must be copied into main elastic docker-compose yml-file
|
|
||||||
volumes:
|
|
||||||
elastic:
|
|
||||||
|
@ -1,24 +1,23 @@
|
|||||||
version: '3.6'
|
version: '3.6'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
elasticsearch752:
|
|
||||||
extends:
|
|
||||||
file: docker-compose.elasticsearch.base.yml
|
|
||||||
service: elasticsearch
|
|
||||||
build:
|
|
||||||
context: ./dockerfiles/elasticsearch752
|
|
||||||
volumes:
|
|
||||||
- elastic752:/usr/share/elasticsearch/data
|
|
||||||
|
|
||||||
elasticsearch732:
|
elasticsearch732:
|
||||||
extends:
|
extends:
|
||||||
file: docker-compose.elasticsearch.base.yml
|
file: docker-compose.elasticsearch.base.yml
|
||||||
service: elasticsearch
|
service: elasticsearch
|
||||||
build:
|
build:
|
||||||
context: ./dockerfiles/elasticsearch732
|
dockerfile: elastic732.Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- elastic732:/usr/share/elasticsearch/data
|
- elastic732:/usr/share/elasticsearch/data
|
||||||
|
elasticsearch752:
|
||||||
|
extends:
|
||||||
|
file: docker-compose.elasticsearch.base.yml
|
||||||
|
service: elasticsearch
|
||||||
|
build:
|
||||||
|
dockerfile: elastic752.Dockerfile
|
||||||
|
volumes:
|
||||||
|
- elastic752:/usr/share/elasticsearch/data
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
elastic752:
|
|
||||||
elastic732:
|
elastic732:
|
||||||
|
elastic752:
|
||||||
|
@ -4,13 +4,7 @@ services:
|
|||||||
minio:
|
minio:
|
||||||
image: minio/minio:RELEASE.2020-06-12T00-06-19Z
|
image: minio/minio:RELEASE.2020-06-12T00-06-19Z
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
|
||||||
- minio:/minio
|
|
||||||
environment:
|
environment:
|
||||||
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
||||||
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
||||||
command: server /minio
|
command: server /minio
|
||||||
|
|
||||||
# Must be copied into main minio docker-compose yml-file
|
|
||||||
volumes:
|
|
||||||
minio:
|
|
||||||
|
@ -5,6 +5,8 @@ services:
|
|||||||
extends:
|
extends:
|
||||||
file: docker-compose.minio.base.yml
|
file: docker-compose.minio.base.yml
|
||||||
service: minio
|
service: minio
|
||||||
|
volumes:
|
||||||
|
- minio:/minio
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
minio:
|
minio:
|
||||||
|
@ -44,3 +44,11 @@ services:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
database:
|
database:
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
user_ssh_key:
|
||||||
|
file: ~/.ssh/id_rsa
|
||||||
|
user_known_hosts:
|
||||||
|
file: ~/.ssh/known_hosts
|
||||||
|
composer_auth:
|
||||||
|
file: ~/.composer/auth.json
|
||||||
|
1
dockerfiles/elasticsearch/elastic.base.Dockerfile
Normal file
1
dockerfiles/elasticsearch/elastic.base.Dockerfile
Normal file
@ -0,0 +1 @@
|
|||||||
|
RUN elasticsearch-plugin install analysis-icu
|
4
dockerfiles/elasticsearch/elastic732.Dockerfile
Normal file
4
dockerfiles/elasticsearch/elastic732.Dockerfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# syntax = edrevo/dockerfile-plus
|
||||||
|
FROM docker.elastic.co/elasticsearch/elasticsearch:7.3.2
|
||||||
|
|
||||||
|
INCLUDE+ ./elastic.base.Dockerfile
|
4
dockerfiles/elasticsearch/elastic752.Dockerfile
Normal file
4
dockerfiles/elasticsearch/elastic752.Dockerfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# syntax = edrevo/dockerfile-plus
|
||||||
|
FROM docker.elastic.co/elasticsearch/elasticsearch:7.5.2
|
||||||
|
|
||||||
|
INCLUDE+ ./elastic.base.Dockerfile
|
@ -1,3 +0,0 @@
|
|||||||
FROM docker.elastic.co/elasticsearch/elasticsearch:7.3.2
|
|
||||||
|
|
||||||
RUN elasticsearch-plugin install analysis-icu
|
|
@ -1,3 +0,0 @@
|
|||||||
FROM docker.elastic.co/elasticsearch/elasticsearch:7.5.2
|
|
||||||
|
|
||||||
RUN elasticsearch-plugin install analysis-icu
|
|
@ -1 +0,0 @@
|
|||||||
* * * * * laradock /usr/bin/php /var/www/artisan schedule:run >> /dev/null 2>&1
|
|
1
dockerfiles/workspace/crontab73/laradock
Normal file
1
dockerfiles/workspace/crontab73/laradock
Normal file
@ -0,0 +1 @@
|
|||||||
|
#* * * * * laradock /usr/bin/php /var/www/artisan schedule:run >> /dev/null 2>&1
|
1
dockerfiles/workspace/crontab74/laradock
Normal file
1
dockerfiles/workspace/crontab74/laradock
Normal file
@ -0,0 +1 @@
|
|||||||
|
#* * * * * laradock /usr/bin/php /var/www/artisan schedule:run >> /dev/null 2>&1
|
@ -117,7 +117,9 @@ RUN if [ ${INSTALL_SSH} = true ]; then \
|
|||||||
USER laradock
|
USER laradock
|
||||||
|
|
||||||
RUN if [ ${INSTALL_SSH} = true ]; then \
|
RUN if [ ${INSTALL_SSH} = true ]; then \
|
||||||
mkdir -p ~/.ssh && ln -s /run/secrets/user_ssh_key ~/.ssh/id_rsa \
|
mkdir -p ~/.ssh \
|
||||||
|
&& ln -s /run/secrets/user_ssh_key ~/.ssh/id_rsa \
|
||||||
|
&& ln -s /run/secrets/user_known_hosts ~/.ssh/known_hosts \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -433,23 +435,12 @@ COPY ./minio/auth.json /home/laradock/.mc/config.json
|
|||||||
USER laradock
|
USER laradock
|
||||||
|
|
||||||
RUN if [ ${INSTALL_SSH} = true ]; then \
|
RUN if [ ${INSTALL_SSH} = true ]; then \
|
||||||
mkdir -p ~/.ssh && ln -s /run/secrets/user_ssh_key ~/.ssh/id_rsa \
|
|
||||||
&& ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts \
|
&& ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts \
|
||||||
&& ssh-keyscan -t rsa bitbucket.org >> ~/.ssh/known_hosts \
|
&& ssh-keyscan -t rsa bitbucket.org >> ~/.ssh/known_hosts \
|
||||||
&& ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts \
|
&& ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts \
|
||||||
&& ssh-keyscan -t rsa vcs.wpstudio.ru >> ~/.ssh/known_hosts \
|
&& ssh-keyscan -t rsa vcs.wpstudio.ru >> ~/.ssh/known_hosts \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
# Crontab
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
USER root
|
|
||||||
|
|
||||||
COPY ./crontab /etc/cron.d
|
|
||||||
|
|
||||||
RUN chmod -R 644 /etc/cron.d
|
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
@ -10,3 +10,13 @@ INCLUDE+ ./workspace.base.Dockerfile
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
RUN pecl install -a redis
|
RUN pecl install -a redis
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Crontab
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
|
COPY ./crontab73 /etc/cron.d
|
||||||
|
|
||||||
|
RUN chmod -R 644 /etc/cron.d
|
||||||
|
@ -11,3 +11,13 @@ INCLUDE+ ./workspace.base.Dockerfile
|
|||||||
|
|
||||||
RUN pecl install igbinary \
|
RUN pecl install igbinary \
|
||||||
&& pecl install -a redis
|
&& pecl install -a redis
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Crontab
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
|
COPY ./crontab74 /etc/cron.d
|
||||||
|
|
||||||
|
RUN chmod -R 644 /etc/cron.d
|
||||||
|
Reference in New Issue
Block a user