Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .env.example
Empty file.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ tests/test_results/reports
vendor
composer.lock
__*
.env
.config.ini.php
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM php:7.0-apache

RUN usermod -u 1000 www-data
RUN groupmod -g 1000 www-data

RUN apt-get update \
&& apt-get install -y libicu-dev \
&& docker-php-ext-install intl

RUN docker-php-ext-install mysqli pdo_mysql mbstring

ENV PHP_TIMEZONE America/Montevideo

ENV APACHE_DOC_ROOT /var/www/html

RUN a2enmod rewrite

RUN apt-get update \
&& apt-get install -y ssmtp \
&& apt-get clean \
&& echo "FromLineOverride=YES" >> /etc/ssmtp/ssmtp.conf \
&& echo 'sendmail_path = "/usr/sbin/ssmtp -t"' > /usr/local/etc/php/conf.d/mail.ini
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# LOVD+ v.3.0
39 changes: 39 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: '3.8'
services:
lovd:
build:
context: ./
dockerfile: Dockerfile
depends_on:
- db
volumes:
- ./src:/var/www/html/
ports:
- 8000:80
db:
container_name: db
image: mysql:5.6
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}

ports:
- "9906:3306"
env_file:
- .env
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- '8080:80'
restart: always
environment:
PMA_HOST: db
depends_on:
- db
networks:
default:
external:
name: lovdplus
8 changes: 8 additions & 0 deletions src/data_files/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The following path is used by the LOVD API to write files to that are to be
imported automatically. Other processes can also store files there that are
to be imported. This setting is optional.
For LOVD+, this path is where your data files need to be located.
If filled in, make sure the directory is readable and writable for the user
running the webserver.
Preferably, use a directory outside of the document root, or otherwise block
the directory from being read directly by the webserver.
1 change: 1 addition & 0 deletions src/data_files_archives/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The following path is where LOVD will write automatically imported files to.