File tree 6 files changed +78
-0
lines changed
docker-compose-apache-php
etc/apache2/sites-enabled
6 files changed +78
-0
lines changed Original file line number Diff line number Diff line change
1
+ ```
2
+ rm -rf ./shared/bitrix/modules/ws.tools
3
+ git pull origin master
4
+ php ./shared/bitrix/tools/migrate apply
5
+ ```
Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+
3
+ services :
4
+ db :
5
+ image : mariadb
6
+ environment :
7
+ MYSQL_ALLOW_EMPTY_PASSWORD : 1
8
+ volumes :
9
+ - ./db:/var/lib/mysql
10
+ - ./mariadb.cnf:/etc/mysql/mariadb.conf.d/mariadb.cnf
11
+ ports :
12
+ - " 11000:3306"
13
+ restart : always
14
+
15
+ sources :
16
+ build : sources
17
+ volumes :
18
+ - ./sources/www:/var/www/html
19
+ depends_on :
20
+ - db
21
+ ports :
22
+ - " 8080:80"
23
+ restart : always
24
+ environment :
25
+ XDEBUG_CONFIG : remote_host=192.168.1.224
Original file line number Diff line number Diff line change
1
+ [mysqld]
2
+ # general_log_file = /var/log/mysql/mysql.log
3
+ # general_log = 1
4
+ sql_mode = " "
Original file line number Diff line number Diff line change
1
+ www
Original file line number Diff line number Diff line change
1
+ FROM php:7.1-apache
2
+
3
+ RUN apt-get update && apt-get install -y --force-yes \
4
+ libmysqlclient-dev \
5
+ libpng12-dev \
6
+ libmcrypt-dev \
7
+ libjpeg-dev \
8
+ libfreetype6-dev \
9
+ && docker-php-ext-install -j$(nproc) mysqli pdo mcrypt pdo_mysql mbstring \
10
+ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
11
+ && docker-php-ext-install -j$(nproc) gd \
12
+ && docker-php-ext-enable mysqli pdo pdo_mysql gd mcrypt mbstring
13
+
14
+ RUN yes | pecl install xdebug \
15
+ && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
16
+ && echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
17
+ && echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
18
+
19
+ RUN yes | echo "mbstring.func_overload=2" >> /usr/local/etc/php/conf.d/mbstring.ini \
20
+ && echo "mbstring.internal_encoding=utf-8" >> /usr/local/etc/php/conf.d/mbstring.ini
21
+
22
+ COPY etc/apache2/sites-enabled/000-default.conf /etc/apache2/sites-enabled/000-default.conf
23
+
24
+ RUN a2enmod rewrite
25
+
26
+ CMD ["apache2-foreground" ]
Original file line number Diff line number Diff line change
1
+ <VirtualHost *:80 >
2
+ ServerName localhost
3
+
4
+ ServerAdmin webmaster@localhost
5
+ DocumentRoot /var/www/html
6
+
7
+ <Directory /var/www/html >
8
+ Options Indexes FollowSymLinks
9
+ AllowOverride All
10
+ Require all granted
11
+ </Directory >
12
+
13
+ ErrorLog ${APACHE_LOG_DIR}/error.log
14
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
15
+ </VirtualHost >
16
+
17
+ # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
You can’t perform that action at this time.
0 commit comments