Skip to content
Snippets Groups Projects
Commit 02b9e21b authored by CORDEL Yannick's avatar CORDEL Yannick
Browse files

Initial commit

parents
Branches
No related tags found
No related merge requests found
# ignore Themes & Modules folder
/modules/*
/themes/*
\ No newline at end of file
# Dockerfile Omeka-s
FROM php:7.4-apache
LABEL maintainer_name="Yannick Cordel"
LABEL maintainer_email="yannick.cordel@univ-lorraine.fr"
WORKDIR /var/www/html
EXPOSE 80
# Install utilities
RUN apt-get -qq update && apt-get -qq -y upgrade
RUN apt-get install -y \
zlib1g-dev \
libpng-dev \
libjpeg-dev \
libfreetype6-dev \
libmemcached-dev \
imagemagick \
unzip \
wget
# PHP extensions
RUN docker-php-ext-install -j$(nproc) iconv pdo pdo_mysql mysqli gd
RUN docker-php-ext-configure gd --with-jpeg=/usr/include/ --with-freetype=/usr/include/
# Download Omeka-s
ARG version=3.0.2
RUN wget https://github.com/omeka/omeka-s/releases/download/v3.0.2/omeka-s-${version}.zip
RUN unzip omeka-s-${version}.zip
RUN rm omeka-s-${version}.zip
COPY database.ini omeka-s/config/
RUN chown -R www-data:www-data /var/www/html/
# Enable the rewrite module of apache
RUN a2enmod rewrite
VOLUME /var/www/html/omeka-s
CMD ["apache2-foreground"]
\ No newline at end of file
user = ${OMEKA_USER}
password = ${OMEKA_PWD}
dbname = ${OMEKA_DB}
host = ${OMEKA_HOST}
;port =
;unix_socket =
;log_path =
version: "2"
services:
mariadb:
image: mariadb:latest
restart: always
networks:
- network1
environment:
MYSQL_ROOT_PASSWORD: myRootpwd2021*
MYSQL_DATABASE: omeka
MYSQL_USER: omeka_user
MYSQL_PASSWORD: omeka_pwd
pma:
depends_on:
- mariadb
image: phpmyadmin/phpmyadmin:latest
restart: always
networks:
- network1
ports:
- "8100:80"
links:
- mariadb:db
omeka:
depends_on:
- mariadb
image: ycordel/omeka_s:latest
restart: always
environment:
OMEKA_USER: omeka_user
OMEKA_PWD: omeka_pwd
OMEKA_DB: omeka
OMEKA_HOST: mariadb
networks:
- network1
ports:
- "8080:80"
links:
- mariadb:db
volumes:
- .\modules\:/var/www/html/omeka-s/modules/
- .\themes\custom\:/var/www/html/omeka-s/themes/custom/
volumes:
omeka:
networks:
network1:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment