parent
3efed93681
commit
4664dbb642
@ -0,0 +1,15 @@
|
|||||||
|
FROM php:7.2-apache
|
||||||
|
|
||||||
|
# Use the default production configuration.
|
||||||
|
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||||
|
|
||||||
|
RUN docker-php-ext-install mysqli
|
||||||
|
|
||||||
|
# Enable rewrite module for httpd.
|
||||||
|
RUN ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load
|
||||||
|
|
||||||
|
ADD sna /var/www/html
|
||||||
|
|
||||||
|
# Set 20M body size limit and enable short open tags in PHP
|
||||||
|
RUN sed -i "s/<VirtualHost \*:80>/<VirtualHost \*:80>\n\tLimitRequestBody 20480000\n/" /etc/apache2/sites-enabled/000-default.conf && \
|
||||||
|
sed -i "s/short_open_tag = Off/short_open_tag = On/" $PHP_INI_DIR/php.ini
|
@ -0,0 +1,27 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
build: .
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "5000:80"
|
||||||
|
volumes:
|
||||||
|
- <vnesi pot na gostitelju>:/var/www/html/audio
|
||||||
|
- <vnesi pot na gostitelju>:/var/www/html/comments
|
||||||
|
- <vnesi pot na gostitelju>:/var/www/html/images
|
||||||
|
- <vnesi pot na gostitelju>:/var/www/html/images/words
|
||||||
|
environment:
|
||||||
|
DB_HOST: db
|
||||||
|
DB_USER: testuser
|
||||||
|
DB_PASS: testpass
|
||||||
|
DB_NAME: digital_atlas
|
||||||
|
db:
|
||||||
|
image: "mariadb:10.5-focal"
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: roottestpass
|
||||||
|
MYSQL_DATABASE: digital_atlas
|
||||||
|
MYSQL_USER: testuser
|
||||||
|
MYSQL_PASSWORD: testpass
|
||||||
|
volumes:
|
||||||
|
- <vnesi pot na gostitelju>:/var/lib/mysql
|
Loading…
Reference in new issue