Basic drupal dockerized image for Artxibo Arteleku
This commit is contained in:
commit
b63eb427bf
32
Dockerfile
Normal file
32
Dockerfile
Normal file
@ -0,0 +1,32 @@
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
RUN apt update && apt -y upgrade
|
||||
|
||||
RUN apt -y install apt-transport-https lsb-release ca-certificates curl gnupg && \
|
||||
curl https://packages.sury.org/php/apt.gpg | apt-key add - && \
|
||||
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
|
||||
apt update
|
||||
|
||||
|
||||
RUN apt install -y \
|
||||
apache2 libapache2-mod-php5.6 \
|
||||
php5.6-gd php5.6-curl php5.6-mcrypt php5.6-imagick php5.6-json php5.6-xsl php5.6-mysql php5.6-apcu php5.6-common
|
||||
|
||||
RUN a2enmod proxy*
|
||||
|
||||
COPY data/ /var/www/2017.artxibo.arteleku.net/
|
||||
|
||||
RUN chown -R www-data:www-data /var/www/
|
||||
|
||||
COPY config/default.conf /etc/apache2/sites-available/000-default.conf
|
||||
|
||||
#ENTRYPOINT ["/usr/sbin/apache2", "-k", "start"]
|
||||
|
||||
#ENV APACHE_RUN_USER www-data
|
||||
#ENV APACHE_RUN_GROUP www-data
|
||||
#ENV APACHE_LOG_DIR /var/log/apache2
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD apachectl -D FOREGROUND
|
||||
|
26
README.md
Normal file
26
README.md
Normal file
@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
# Create Database directory
|
||||
|
||||
mkdir db
|
||||
chown -R 1000:1000 db
|
||||
|
||||
# Build Custom Drupal Image
|
||||
|
||||
docker-compose build
|
||||
|
||||
# Configure environment
|
||||
|
||||
cp env.sample .env
|
||||
vim .env
|
||||
|
||||
# Start services
|
||||
|
||||
docker-compose up -d
|
||||
|
||||
# Import Database
|
||||
|
||||
docker exec -i <container_id> mysql -u<mysql-user> -p<mysql-pass> <mysql-database> < database.dump.sql
|
||||
|
||||
|
||||
|
59
config/default.conf
Normal file
59
config/default.conf
Normal file
@ -0,0 +1,59 @@
|
||||
<VirtualHost *:80>
|
||||
|
||||
ServerAdmin webmaster@localhost
|
||||
ServerName artxibo.arteleku.net
|
||||
ServerAlias *.artxibo.arteleku.net
|
||||
|
||||
Redirect permanent /es/zehar http://artxibo.arteleku.net/es/collections/zehar
|
||||
Redirect permanent /eu/zehar http://artxibo.arteleku.net/eu/collections/zehar
|
||||
Redirect permanent /en/zehar http://artxibo.arteleku.net/en/collections/zehar
|
||||
Redirect permanent /mrbe/ http://blogs.audio-lab.org/mrbe/
|
||||
|
||||
DocumentRoot /var/www/2017.artxibo.arteleku.net/
|
||||
|
||||
ProxyRequests Off
|
||||
ProxyPreserveHost On
|
||||
|
||||
<Proxy \*>
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Proxy>
|
||||
|
||||
ProxyPass /fedora/get http://172.17.0.1:8080/fedora/get
|
||||
ProxyPassReverse /fedora/get http://172.17.0.1:8080/fedora/get
|
||||
ProxyPass /fedora/services http://172.17.0.1:8080/fedora/services
|
||||
ProxyPassReverse /fedora/services http://172.17.0.1:8080/fedora/services
|
||||
ProxyPass /fedora/describe http://172.17.0.1:8080/fedora/describe
|
||||
ProxyPassReverse /fedora/describe http://172.17.0.1:8080/fedora/describe
|
||||
ProxyPass /iiv http://172.17.0.1:8080/iiv
|
||||
ProxyPassReverse /iiv http://172.17.0.1:8080/iiv
|
||||
ProxyPass /fedora/risearch http://172.17.0.1:8080/fedora/risearch
|
||||
ProxyPassReverse /fedora/risearch http://172.17.0.1:8080/fedora/risearch
|
||||
ProxyPass /adore-djatoka http://172.17.0.1:8080/adore-djatoka
|
||||
ProxyPassReverse /adore-djatoka http://172.17.0.1:8080/adore-djatoka
|
||||
ProxyPass /fedora/images http://172.17.0.1:8080/fedora/images
|
||||
ProxyPassReverse /fedora/images http://172.17.0.1:8080/fedora/images
|
||||
ProxyPass /fedora/objects http://172.17.0.1:8080/fedora/objects
|
||||
ProxyPassReverse /fedora/objects http://172.17.0.1:8080/fedora/objects
|
||||
|
||||
<Directory />
|
||||
Options FollowSymLinks
|
||||
AllowOverride None
|
||||
</Directory>
|
||||
|
||||
<Location "/user">
|
||||
Order deny,allow
|
||||
deny from all
|
||||
</Location>
|
||||
|
||||
<Directory /var/www/2017.artxibo.arteleku.net/>
|
||||
Options Indexes FollowSymLinks MultiViews
|
||||
AllowOverride All
|
||||
Order allow,deny
|
||||
allow from all
|
||||
</Directory>
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/artxibo.error.log
|
||||
LogLevel warn
|
||||
CustomLog ${APACHE_LOG_DIR}/artxibo.access.log proxy_combined
|
||||
</VirtualHost>
|
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
@ -0,0 +1,13 @@
|
||||
version: "2.4"
|
||||
services:
|
||||
db:
|
||||
image: mariadb
|
||||
restart: always
|
||||
user: 1000:1000
|
||||
volumes:
|
||||
- ./db:/var/lib/mysql
|
||||
drupal:
|
||||
build: .
|
||||
restart: always
|
||||
ports:
|
||||
- 8088:80
|
4
env.sample
Normal file
4
env.sample
Normal file
@ -0,0 +1,4 @@
|
||||
MARIADB_RANDOM_ROOT_PASSWORD=true
|
||||
MARIADB_DATABASE=artxibo
|
||||
MARIADB_USER=artxibo
|
||||
MARIADB_PASSWORD=artxibo
|
Loading…
Reference in New Issue
Block a user