added bashrc to mysql container
This commit is contained in:
parent
04bfc68b6b
commit
314bec979e
4
Docker/mysql/bashrc
Normal file
4
Docker/mysql/bashrc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
PS1='\e[36m\e[1mMYSQL\e[0m:\e[90m\w\e[0m\n$ '
|
||||||
|
bind '"\e[A": history-search-backward'
|
||||||
|
bind '"\e[B": history-search-forward'
|
@ -1,7 +1,5 @@
|
|||||||
FROM php:7.0-fpm
|
FROM php:7.0-fpm
|
||||||
|
|
||||||
COPY ./php-custom.ini /usr/local/etc/php/conf.d/php-custom.ini
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
libfreetype6-dev \
|
libfreetype6-dev \
|
||||||
libjpeg62-turbo-dev \
|
libjpeg62-turbo-dev \
|
||||||
@ -31,5 +29,7 @@ RUN export COMPOSER_HOME=/usr/local/composer && \
|
|||||||
-L -o /usr/local/bin/drush && \
|
-L -o /usr/local/bin/drush && \
|
||||||
chmod +x /usr/local/bin/drush
|
chmod +x /usr/local/bin/drush
|
||||||
|
|
||||||
|
COPY ./php-custom.ini /usr/local/etc/php/conf.d/php-custom.ini
|
||||||
|
|
||||||
COPY ./bashrc /root/.bashrc
|
COPY ./bashrc /root/.bashrc
|
||||||
COPY ./inputrc /root/.inputrc
|
COPY ./inputrc /root/.inputrc
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
memory_limit = 512M
|
memory_limit = 1024M
|
||||||
upload_max_filesize = 50M
|
upload_max_filesize = 50M
|
||||||
post_max_size = 50M
|
post_max_size = 50M
|
||||||
|
@ -6,6 +6,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- db-data:/var/lib/mysql
|
- db-data:/var/lib/mysql
|
||||||
- ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
|
- ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
|
||||||
|
- ./Docker/mysql/bashrc:/root/.bashrc:ro
|
||||||
# - "${DB_IMPORTE_FILE_D8}:/docker-entrypoint-initdb.d/materio_d8.sql"
|
# - "${DB_IMPORTE_FILE_D8}:/docker-entrypoint-initdb.d/materio_d8.sql"
|
||||||
networks:
|
networks:
|
||||||
- database
|
- database
|
||||||
@ -21,6 +22,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- db-data-legacy:/var/lib/mysql
|
- db-data-legacy:/var/lib/mysql
|
||||||
- ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
|
- ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
|
||||||
|
- ./Docker/mysql/bashrc:/root/.bashrc:ro
|
||||||
- "${DB_IMPORTE_FILE_D7}:/docker-entrypoint-initdb.d/materio_d7.sql"
|
- "${DB_IMPORTE_FILE_D7}:/docker-entrypoint-initdb.d/materio_d7.sql"
|
||||||
networks:
|
networks:
|
||||||
- database
|
- database
|
||||||
|
Loading…
x
Reference in New Issue
Block a user